Skip to content

Commit

Permalink
Update the usage of set-output command in GH actions (#16389)
Browse files Browse the repository at this point in the history
  • Loading branch information
vasireddy99 authored Nov 22, 2022
1 parent d1cd79d commit 4328a01
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-links.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Get changed files
id: changes
run: |
echo "::set-output name=md::$(git diff --name-only --diff-filter=ACMRTUXB $(git merge-base origin/main ${{ github.event.pull_request.head.sha }}) ${{ github.event.pull_request.head.sha }} | grep .md$ | xargs)"
echo "md=$(git diff --name-only --diff-filter=ACMRTUXB $(git merge-base origin/main ${{ github.event.pull_request.head.sha }}) ${{ github.event.pull_request.head.sha }} | grep .md$ | xargs)" >> $GITHUB_OUTPUT
check-links:
runs-on: ubuntu-latest
needs: changedfiles
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/load-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ jobs:
TEST_ARGS: "-test.run=${{ matrix.test }}"
- name: Set results filename
id: filename
run: echo "::set-output name=name::$(echo '${{ matrix.test }}' | sed -e 's/|/_/g')"
run: echo "name=$(echo '${{ matrix.test }}' | sed -e 's/|/_/g')" >> $GITHUB_OUTPUT
- name: Create Test Result Archive
if: ${{ failure() || success() }}
continue-on-error: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scripts/set_release_tag.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
TAG="${GITHUB_REF##*/}"
if [[ $TAG =~ ^v[0-9]+\.[0-9]+\.[0-9]+.* ]]
then
echo "::set-output name=tag::$TAG"
echo "tag=$TAG" >> $GITHUB_OUTPUT
fi
2 changes: 1 addition & 1 deletion .github/workflows/scripts/setup_e2e_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ else
fi
done
MATRIX+=",{\"test\":\"$curr\"}]}"
echo "::set-output name=loadtest_matrix::$MATRIX"
echo "loadtest_matrix=$MATRIX" >> $GITHUB_OUTPUT
2 changes: 1 addition & 1 deletion .github/workflows/scripts/setup_stability_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ for i in "${!TESTS[@]}"; do
MATRIX+="{\"test\":\"$curr\"},"
done
MATRIX+="]}"
echo "::set-output name=stabilitytest_matrix::$MATRIX"
echo "stabilitytest_matrix=$MATRIX" >> $GITHUB_OUTPUT
4 changes: 2 additions & 2 deletions .github/workflows/scripts/verify-dist-files-exist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ do
if [[ ! -f $f ]]
then
echo "$f does not exist."
echo "::set-output name=passed::false"
echo "passed=false" >> $GITHUB_OUTPUT
exit 0
fi
done
echo "::set-output name=passed::true"
echo "passed=true" >> $GITHUB_OUTPUT

0 comments on commit 4328a01

Please sign in to comment.