diff options
author | Valery Piashchynski <[email protected]> | 2022-11-27 01:50:46 +0100 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2022-11-27 01:50:46 +0100 |
commit | 81902c47d4ead873c2191302042e715645aded2a (patch) | |
tree | c373a29c12aa4ea0431e94b8d16c4fc7ca06390c /.github | |
parent | 1228f1cc32a10773441d2faf8e31bad26856ef77 (diff) |
chore: update deprecated github api
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/codeql-analysis.yml | 4 | ||||
-rw-r--r-- | .github/workflows/release.yml | 22 | ||||
-rw-r--r-- | .github/workflows/release_dep.yml | 8 | ||||
-rw-r--r-- | .github/workflows/release_grpc.yml | 18 | ||||
-rw-r--r-- | .github/workflows/release_grpc_buf.yml | 2 | ||||
-rw-r--r-- | .github/workflows/tests.yml | 4 |
6 files changed, 29 insertions, 29 deletions
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 3ace8f42..12746f69 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -5,9 +5,9 @@ name: "CodeQL" on: push: - branches: [ master, beta, stable ] + branches: [ master, stable ] pull_request: - branches: [ master, beta, stable ] + branches: [ master, stable ] schedule: - cron: '0 15 * * 6' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index aa364d92..90d4dd77 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -61,13 +61,13 @@ jobs: - name: Generate builder values id: values run: | - echo "::set-output name=version::`echo ${GITHUB_REF##*/} | sed -e 's/^[vV ]*//'`" - echo "::set-output name=timestamp::`date +%FT%T%z`" - echo "::set-output name=binary-name::rr`[ ${{ matrix.os }} = 'windows' ] && echo '.exe'`" + echo "version=$(echo ${GITHUB_REF##*/} | sed -e 's/^[vV ]*//')" >> $GITHUB_OUTPUT + echo "timestamp=$(echo $(date +%FT%T%z))" >> $GITHUB_OUTPUT + echo "binary-name=$(echo $(echo rr`[ ${{ matrix.os }} = 'windows' ] && echo '.exe'`))" >> $GITHUB_OUTPUT if [ ${{ matrix.os }} == "windows" ]; then - echo "::set-output name=sign-cert-name::rr.exe.asc" + echo "sign-cert-name=rr.exe.asc" >> $GITHUB_OUTPUT else - echo "::set-output name=sign-cert-name::rr.asc" + echo "sign-cert-name=rr.asc" >> $GITHUB_OUTPUT fi - name: Import GPG key @@ -98,22 +98,22 @@ jobs: - name: Generate distributive directory name id: dist-dir run: > - echo "::set-output name=name::roadrunner-${{ steps.values.outputs.version }}-$( + echo "name=$(echo roadrunner-${{ steps.values.outputs.version }}-$( [ ${{ matrix.os }} != '' ] && echo '${{ matrix.os }}' || echo 'unknown' )$( [ ${{ matrix.compiler }} = 'musl-gcc' ] && echo '-musl' - )-${{ matrix.arch }}" + ))-${{ matrix.arch }}" >> $GITHUB_OUTPUT - name: Generate distributive archive name id: dist-arch run: > - echo "::set-output name=name::${{ steps.dist-dir.outputs.name }}.$( + echo "name=$(echo ${{ steps.dist-dir.outputs.name }}.$( case ${{ matrix.archiver }} in zip) echo 'zip';; tar) echo 'tar.gz';; *) exit 10; esac - )" + ))" >> $GITHUB_OUTPUT - name: Create distributive run: | @@ -174,8 +174,8 @@ jobs: - name: Generate builder values id: values run: | - echo "::set-output name=version::`echo ${GITHUB_REF##*/} | sed -e 's/^[vV ]*//'`" - echo "::set-output name=timestamp::`date +%FT%T%z`" + echo "version=$(echo $(${GITHUB_REF##*/} | sed -e 's/^[vV ]*//'`)" >> $GITHUB_OUTPUT + echo "timestamp=$(echo $(date +%FT%T%z))" >> $GITHUB_OUTPUT - name: Build image uses: docker/build-push-action@v3 # Action page: <https://github.com/docker/build-push-action> diff --git a/.github/workflows/release_dep.yml b/.github/workflows/release_dep.yml index bda07b97..24f550be 100644 --- a/.github/workflows/release_dep.yml +++ b/.github/workflows/release_dep.yml @@ -33,10 +33,10 @@ jobs: - name: Generate builder values id: values run: | - echo "::set-output name=version::`echo ${GITHUB_REF##*/} | sed -e 's/^[vV ]*//'`" - echo "::set-output name=timestamp::`date +%FT%T%z`" - echo "::set-output name=binary-name::rr" - echo "::set-output name=sign-cert-name::rr.asc" + echo "version=$(echo ${GITHUB_REF##*/} | sed -e 's/^[vV ]*//')" >> $GITHUB_OUTPUT + echo "timestamp=$(echo $(date +%FT%T%z))" >> $GITHUB_OUTPUT + echo "binary-name=rr" >> $GITHUB_OUTPUT + echo "sign-cert-name=rr.asc" >> $GITHUB_OUTPUT - name: Import GPG key uses: crazy-max/ghaction-import-gpg@v5 diff --git a/.github/workflows/release_grpc.yml b/.github/workflows/release_grpc.yml index b3204661..1b002ea9 100644 --- a/.github/workflows/release_grpc.yml +++ b/.github/workflows/release_grpc.yml @@ -63,13 +63,13 @@ jobs: - name: Generate builder values id: values run: | - echo "::set-output name=version::`echo ${GITHUB_REF##*/} | sed -e 's/^[vV ]*//'`" - echo "::set-output name=timestamp::`date +%FT%T%z`" - echo "::set-output name=binary-name::protoc-gen-php-grpc`[ ${{ matrix.os }} = 'windows' ] && echo '.exe'`" + echo "version=$(echo ${GITHUB_REF##*/} | sed -e 's/^[vV ]*//')" >> $GITHUB_OUTPUT + echo "timestamp=$(echo $(date +%FT%T%z))" >> $GITHUB_OUTPUT + echo "binary-name=$(echo $(echo protoc-gen-php-grpc`[ ${{ matrix.os }} = 'windows' ] && echo '.exe'`))" >> $GITHUB_OUTPUT if [ ${{ matrix.os }} == "windows" ]; then - echo "::set-output name=sign-cert-name::protoc-gen-php-grpc.exe.asc" + echo "sign-cert-name=protoc-gen-php-grpc.exe.asc" >> $GITHUB_OUTPUT else - echo "::set-output name=sign-cert-name::protoc-gen-php-grpc.asc" + echo "sign-cert-name=protoc-gen-php-grpc.asc" >> $GITHUB_OUTPUT fi - name: Import GPG key @@ -96,22 +96,22 @@ jobs: - name: Generate distributive directory name id: dist-dir run: > - echo "::set-output name=name::protoc-gen-php-grpc-${{ steps.values.outputs.version }}-$( + echo "name=$(echo protoc-gen-php-grpc-${{ steps.values.outputs.version }}-$( [ ${{ matrix.os }} != '' ] && echo '${{ matrix.os }}' || echo 'unknown' )$( [ ${{ matrix.compiler }} = 'musl-gcc' ] && echo '-musl' - )-${{ matrix.arch }}" + ))-${{ matrix.arch }}" >> $GITHUB_OUTPUT - name: Generate distributive archive name id: dist-arch run: > - echo "::set-output name=name::${{ steps.dist-dir.outputs.name }}.$( + echo "name=$(echo ${{ steps.dist-dir.outputs.name }}.$( case ${{ matrix.archiver }} in zip) echo 'zip';; tar) echo 'tar.gz';; *) exit 10; esac - )" + ))" >> $GITHUB_OUTPUT - name: Create distributive run: | diff --git a/.github/workflows/release_grpc_buf.yml b/.github/workflows/release_grpc_buf.yml index dd543fca..f5b1dfc9 100644 --- a/.github/workflows/release_grpc_buf.yml +++ b/.github/workflows/release_grpc_buf.yml @@ -24,7 +24,7 @@ jobs: - name: Generate builder values id: values run: | - echo "::set-output name=version::`echo ${GITHUB_REF##*/} | sed -e 's/*//'`" + echo "version=$(echo ${GITHUB_REF##*/} | sed -e 's/*//')" >> $GITHUB_OUTPUT - name: Build image run: | diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e6d6d3d3..2ca514b8 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -112,8 +112,8 @@ jobs: - name: Generate version value id: values # for PR this value will be `merge@__hash__`, SO: <https://stackoverflow.com/a/59780579/2252921> run: | - echo "{name}={version} >> `echo ${GITHUB_REF##*/}`@`echo ${GITHUB_SHA} | cut -c1-8`" - echo "{name}={timestamp} >> `date +%FT%T%z`" + echo "version=$(echo ${GITHUB_REF##*/} | sed -e 's/^[vV ]*//')" >> $GITHUB_OUTPUT + echo "timestamp=$(echo $(date +%FT%T%z))" >> $GITHUB_OUTPUT - name: Compile binary file env: |