Skip to content

Commit

Permalink
github: pass GITHUB_ACTIONS to test scripts (canonical#356)
Browse files Browse the repository at this point in the history
Fixes bug I introduced when trying to avoid text walls in `cleanup()` on
failure. I didn't think of `sudo` stripping the environment.
  • Loading branch information
simondeziel authored Nov 20, 2024
2 parents a2e50ce + 7c9af63 commit c922fbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ jobs:
src_track="$(echo "${dst_track}" | cut -d/ -f1)/stable"
EXTRA_ARGS="${EXTRA_ARGS:-3} ${src_track} ${{ matrix.track }}"
fi
sudo --preserve-env=GITHUB_STEP_SUMMARY,TEST_IMG ./bin/local-run "tests/${TEST_SCRIPT}" ${{ matrix.track }} ${EXTRA_ARGS:-}
sudo --preserve-env=GITHUB_ACTIONS,GITHUB_STEP_SUMMARY,TEST_IMG ./bin/local-run "tests/${TEST_SCRIPT}" ${{ matrix.track }} ${EXTRA_ARGS:-}
# always update cache as we have our own logic of
# cache invalidation and updates in addition to a date check
Expand Down

0 comments on commit c922fbd

Please sign in to comment.