Actions: Fix github actions bug.

pull/3341/head
winlin 2 years ago
parent 95defe6dad
commit fe3502e6ad

@ -30,12 +30,11 @@ jobs:
echo "SRS_VERSION=$SRS_VERSION" >> $GITHUB_ENV echo "SRS_VERSION=$SRS_VERSION" >> $GITHUB_ENV
SRS_MAJOR=$(echo $SRS_TAG| cut -c 2) SRS_MAJOR=$(echo $SRS_TAG| cut -c 2)
echo "SRS_MAJOR=$SRS_MAJOR" >> $GITHUB_ENV echo "SRS_MAJOR=$SRS_MAJOR" >> $GITHUB_ENV
# See https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ # Map a step output to a job output, see https://docs.github.com/en/actions/using-jobs/defining-outputs-for-jobs
- name: Set output outputs:
run: | SRS_TAG: ${{ env.SRS_TAG }}
echo "SRS_TAG=${{ env.SRS_TAG }}" >> $GITHUB_OUTPUT SRS_VERSION: ${{ env.SRS_VERSION }}
echo "SRS_VERSION=${{ env.SRS_VERSION }}" >> $GITHUB_OUTPUT SRS_MAJOR: ${{ env.SRS_MAJOR }}
echo "SRS_MAJOR=${{ env.SRS_MAJOR }}" >> $GITHUB_OUTPUT
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
test: test:
@ -83,10 +82,9 @@ jobs:
tag: ${{ github.ref }} tag: ${{ github.ref }}
draft: true draft: true
prerelease: true prerelease: true
# See https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ # Map a step output to a job output, see https://docs.github.com/en/actions/using-jobs/defining-outputs-for-jobs
- name: Set output outputs:
run: | SRS_RELEASE_ID: ${{ steps.create_draft.outputs.id }}
echo "SRS_RELEASE_ID=${{ steps.create_draft.outputs.id }}" >> $GITHUB_OUTPUT
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
cygwin64: cygwin64:
@ -153,11 +151,10 @@ jobs:
with: with:
release_id: ${{ env.SRS_RELEASE_ID }} release_id: ${{ env.SRS_RELEASE_ID }}
assets_path: ${{ env.SRS_CYGWIN_TAR }} assets_path: ${{ env.SRS_CYGWIN_TAR }}
# See https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ # Map a step output to a job output, see https://docs.github.com/en/actions/using-jobs/defining-outputs-for-jobs
- name: Set output outputs:
run: | SRS_CYGWIN_TAR: ${{ env.SRS_CYGWIN_TAR }}
echo "SRS_CYGWIN_TAR=${{ env.SRS_CYGWIN_TAR }}" >> $GITHUB_OUTPUT SRS_CYGWIN_MD5: ${{ env.SRS_CYGWIN_MD5 }}
echo "SRS_CYGWIN_MD5=${{ env.SRS_CYGWIN_MD5 }}" >> $GITHUB_OUTPUT
runs-on: windows-latest runs-on: windows-latest
linux: linux:
@ -222,13 +219,12 @@ jobs:
with: with:
release_id: ${{ env.SRS_RELEASE_ID }} release_id: ${{ env.SRS_RELEASE_ID }}
assets_path: ${{ env.SRS_SOURCE_TAR }} assets_path: ${{ env.SRS_SOURCE_TAR }}
# See https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ # Map a step output to a job output, see https://docs.github.com/en/actions/using-jobs/defining-outputs-for-jobs
- name: Set output outputs:
run: | SRS_PACKAGE_ZIP: ${{ env.SRS_PACKAGE_ZIP }}
echo "SRS_PACKAGE_ZIP=${{ env.SRS_PACKAGE_ZIP }}" >> $GITHUB_OUTPUT SRS_PACKAGE_MD5: ${{ env.SRS_PACKAGE_MD5 }}
echo "SRS_PACKAGE_MD5=${{ env.SRS_PACKAGE_MD5 }}" >> $GITHUB_OUTPUT SRS_SOURCE_TAR: ${{ env.SRS_SOURCE_TAR }}
echo "SRS_SOURCE_TAR=${{ env.SRS_SOURCE_TAR }}" >> $GITHUB_OUTPUT SRS_SOURCE_MD5: ${{ env.SRS_SOURCE_MD5 }}
echo "SRS_SOURCE_MD5=${{ env.SRS_SOURCE_MD5 }}" >> $GITHUB_OUTPUT
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
docker-srs: docker-srs:

Loading…
Cancel
Save