Fix deprecated GitHub Actions causing workflow failures #5434
+14
−29
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.
Problem
GitHub workflows were failing with deprecated action warnings:
Multiple workflows were using deprecated actions that are no longer supported.
Solution
Updated all GitHub Actions to their latest supported versions and leveraged built-in caching capabilities:
Key Changes
CI Workflow (
ci.yml
):actions/checkout@v2
→actions/checkout@v4
actions/setup-python@v2
→actions/setup-python@v5
with built-in pip cachingactions/setup-node@v2-beta
→actions/setup-node@v5
with built-in yarn cachingcodecov/codecov-action@v1
→codecov/codecov-action@v4
actions/cache@v1
- replaced with native caching in setup actionsAptfile
→apt.txt
)Deployment Workflows:
actions/checkout@v2
→actions/checkout@v4
in bothproduction.yml
andrelease-candidate.yml
Benefits
Before/After Comparison
Before: Manual cache configuration with deprecated actions
After: Built-in caching with modern actions
All YAML syntax has been validated and security scans show no vulnerabilities. The workflows should now run reliably without deprecated action warnings.
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.