GitHub Actions Runtime Upgrade

GitHub Actions Runtime Upgrade

Upgrades GitHub Actions workflows off deprecated runtimes by picking safe action versions, pinning them to commit SHAs and keeping behaviour unchanged.

Skill files1 file
SKILL.md66 lines
1
---
2
name: github-actions-runtime-upgrade-conventions
3
description: 'Upgrade GitHub Actions to supported runtimes by selecting safe action versions, preserving workflow behavior, and validating post-upgrade execution.'
4
---
5
6
# GitHub Actions Runtime Upgrade Conventions
7
8
Use this skill when editing GitHub Actions workflows to address deprecation warnings about action runtimes (for example Node.js runtime migrations).
9
10
## Use This Skill When
11
12
- Workflow logs report an action is running on a deprecated runtime.
13
- You are upgrading action versions in `.github/workflows/*.yml` or `.github/workflows/*.yaml`.
14
- You need to keep existing workflow behavior while modernizing action dependencies.
15
16
## Upgrade Rules
17
18
- Prefer upgrading to the latest stable **major** version of each action that is compatible with the workflow.
19
- Prefer immutable pins: resolve the target release to a full commit SHA and use that SHA in `uses:`.
20
- Do not pin to mutable tags or branches (for example `@v4` or `@main`) in final recommendations.
21
- Upgrade one action at a time per commit (or one tightly related group) so failures are easy to isolate.
22
- Keep existing workflow behavior unchanged while upgrading runtime/dependency actions.
23
24
## Actions We Track in This Repo
25
26
Prioritize runtime review for these groups when warnings appear:
27
28
- Any first-party action under `actions/*`
29
- Especially setup actions under `actions/setup-*` (for example `setup-node`, `setup-python`, `setup-dotnet`)
30
- Any other action explicitly named by the runtime deprecation warning in workflow logs
31
32
## Pinning Pattern
33
34
```yaml
35
steps:
36
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.3.1
37
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.4
38
```
39
40
When recommending upgrades, identify the latest compatible release first, then use the corresponding commit SHA with an optional version comment.
41
42
## Verification Checklist
43
44
After changing action versions:
45
46
1. Ensure all edited workflows still parse and keep the same triggers/permissions unless intentionally changed.
47
2. Run the affected workflows (or equivalent local build/test commands) and confirm the upgraded steps complete successfully.
48
3. Confirm release/signing/artifact steps still produce expected outputs where applicable.
49
4. Check workflow run logs for any new deprecation warnings or runtime migration notes.
50
51
## PR Notes
52
53
Include in the PR summary:
54
55
- Which actions were upgraded (from -> to).
56
- Whether any action could not move to a new major and why.
57
- Which workflows were re-run to validate the change.
58
59
## How This Complements Dependabot
60
61
Dependabot can automate many updates, but this skill still helps when:
62
63
- Dependabot is not enabled for workflows in a repository.
64
- Runtime warnings appear before an automated update is available.
65
- A workflow needs behavior-preserving validation after the action bump.
66

© GitHub, Inc. · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 11,962 prompts

More by @OpenSourceBuffGuy

See all
Ancient Civilization Miniature Diorama prompt image

Ancient Civilization Miniature Diorama

Draws a realistic miniature diorama of an ancient civilization's monuments under construction, set on blueprints atop a wooden drafting table.

image-prompt, gpt-image, miniature, photorealistic, architecture, history, blueprint, 3d-render, cinematic, natural-light, vertical-format, placeholders, long-form, construction, still-life, bokeh, architectural-rendering, for-artists, concept-art, fantasy-world

Error Handling Patterns prompt image

Error Handling Patterns

Teaches an AI agent resilient error handling across languages: exceptions versus Result types, propagation, retries, circuit breakers and graceful degradation.

agent-skill, best-practices, coding, backend, api, debugging, design-patterns, distributed-systems, clean-code, code, code-generation, software-architecture, troubleshooting, for-developers, advanced, long-form, cheat-sheet, guardrails, observability, refactoring, site-reliability, microservices, error-handling

Riot Ink Screenprint Collage prompt image

Riot Ink Screenprint Collage

Defines a reusable JSON style for punk-zine screenprint posters: a thresholded photo hero, black, yellow and red spot inks, a huge headline band and painted marks.

image-prompt, json-prompt, placeholders, poster, collage, printmaking, typography, structured-output, style-reference, limited-palette, vibrant-colors, black-and-white, film-grain, text-rendering, vertical-format, long-form, advanced, for-designers, for-artists, graphic-design, portrait, album-cover, doodle

Reviews

Loading reviews…

Discussion

Loading comments…