Skip to content

Commit 9d28c9e

Browse files
updated workflow to avoid set-output command (#1397)
updated the GitHub Actions workflow to use the new Environment Files approach instead of the deprecated set-output command.
1 parent a8ecf1e commit 9d28c9e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@ jobs:
9090
- name: Store repository status
9191
id: status-before
9292
run: |
93-
echo "::set-output name=BEFORE::$(git status --porcelain -b)"
93+
git_status=$(git status --porcelain -b)
94+
echo "BEFORE=$git_status" >> $GITHUB_ENV
95+
echo "Repository status before tests: $git_status"
9496
- name: Show installed dependencies
9597
run: python -m pip list
9698
- name: Run tests on Ubuntu
@@ -108,7 +110,7 @@ jobs:
108110
- name: Check for files left behind by test
109111
if: matrix.os != 'windows-latest' && always()
110112
run: |
111-
before="${{ steps.status-before.outputs.BEFORE }}"
113+
before="${{ env.BEFORE }}"
112114
after="$(git status --porcelain -b)"
113115
if [[ "$before" != "$after" ]]; then
114116
echo "git status from before: $before"

0 commit comments

Comments
 (0)