Fix GitHub Actions failures by updating checkout versions and fixing i18n workflow bug #1102
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR resolves the GitHub Actions failures that were affecting all PRs, regardless of their content. The issue was caused by outdated action versions and a bug in the i18n consistency check workflow.
Problems Fixed
1. Outdated
actions/checkoutversionsMultiple workflows were using deprecated versions of
actions/checkout(v2 and v3) which have known security vulnerabilities and compatibility issues with newer GitHub runners:main.ymlwas usingactions/checkout@v2learning-path.ymlwas usingactions/checkout@v2i18n-consistency-check.ymlwas usingactions/checkout@v2links-fail-fast.ymlwas usingactions/checkout@v32. Undefined variable in i18n workflow
The
i18n-consistency-check.ymlworkflow referenced an undefined variable$i18n_last_update_hashon line 70, causing runtime failures when the workflow attempted to generate GitHub issue links.3. Missing build artifact handling
The
.gitignorefile wasn't configured to handle temporary build files that could be accidentally committed during development or CI runs.Changes Made
actions/checkout@v4for consistency, security, and compatibilityi18n_last_update_hash=$(git log -1 --format=%H $i18n_filename).gitignoreto prevent accidental commits of build artifacts like*.deband*.tar.gzfilesTesting
These minimal changes should resolve the GitHub Actions failures that were preventing PRs from passing their required checks.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.