ci: fix deprecated set-output commands

This commit is contained in:
Ivan Dyachkov 2023-03-17 08:57:30 +01:00
parent c93a53d641
commit bce40dde6d
3 changed files with 10 additions and 10 deletions

View File

@ -30,7 +30,7 @@ jobs:
-d "{\"title\": \"Sync code from opensource $GITHUB_REF to entperprise $EE_REF\", \"head\": \"$GITHUB_REF\", \"base\":\"$EE_REF\"}" \ -d "{\"title\": \"Sync code from opensource $GITHUB_REF to entperprise $EE_REF\", \"head\": \"$GITHUB_REF\", \"base\":\"$EE_REF\"}" \
https://api.github.com/repos/${{ github.repository_owner }}/emqx-enterprise/pulls) https://api.github.com/repos/${{ github.repository_owner }}/emqx-enterprise/pulls)
echo $R | jq echo $R | jq
echo "::set-output name=url::$(echo $R | jq '.url')" echo "url=$(echo $R | jq '.url')" >> $GITHUB_OUTPUT
- name: request reviewers for a pull request - name: request reviewers for a pull request
if: steps.create_pull_request.outputs.url != 'null' if: steps.create_pull_request.outputs.url != 'null'
run: | run: |

View File

@ -38,12 +38,12 @@ jobs:
git config --global credential.helper store git config --global credential.helper store
make deps-emqx-ee make deps-emqx-ee
make clean make clean
echo "::set-output name=imgname::emqx-ee" echo "imgname=emqx-ee" >> $GITHUB_OUTPUT
echo "::set-output name=version::$(./pkg-vsn.sh)" echo "version=$(./pkg-vsn.sh)" >> $GITHUB_OUTPUT
else else
make emqx-docker make emqx-docker
echo "::set-output name=imgname::emqx" echo "imgname=emqx" >> $GITHUB_OUTPUT
echo "::set-output name=version::$(./pkg-vsn.sh)" echo "version=$(./pkg-vsn.sh)" >> $GITHUB_OUTPUT
fi fi
- name: build docker image - name: build docker image
run: | run: |

View File

@ -233,15 +233,15 @@ jobs:
echo "OLD_VSNS=$old_vsns" >> $GITHUB_ENV echo "OLD_VSNS=$old_vsns" >> $GITHUB_ENV
echo "::set-output name=vsn::$vsn" echo "vsn=$vsn" >> $GITHUB_OUTPUT
echo "::set-output name=profile::$profile" echo "profile=$profile" >> $GITHUB_OUTPUT
echo "::set-output name=broker::$broker" echo "broker=$broker" >> $GITHUB_OUTPUT
echo "::set-output name=old_vsns::$old_vsns" echo "old_vsns=$old_vsns" >> $GITHUB_OUTPUT
- name: Generate matrix - name: Generate matrix
id: generate-matrix id: generate-matrix
run: | run: |
matrix=$(echo -n "$OLD_VSNS" | sed 's/ $//g' | jq -R -s -c 'split(" ")') matrix=$(echo -n "$OLD_VSNS" | sed 's/ $//g' | jq -R -s -c 'split(" ")')
echo "::set-output name=matrix::$matrix" echo "matrix=$matrix" >> $GITHUB_OUTPUT
relup_test_build: relup_test_build:
needs: relup_test_plan needs: relup_test_plan