Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .github/aw/actions-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@
"version": "v6.1.0",
"sha": "55cc8345863c7cc4c66a329aec7e433d2d1c52a9"
},
"actions/checkout@v6.0.2": {
"repo": "actions/checkout",
"version": "v6.0.2",
"sha": "de0fac2e4500dabe0009e67214ff5f5447ce83dd"
},
"actions/checkout@v7.0.1": {
"repo": "actions/checkout",
"version": "v7.0.1",
Expand Down
2 changes: 1 addition & 1 deletion actions/setup-cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
uses: actions/checkout@v7

- name: Install gh-aw
uses: github/gh-aw/actions/setup-cli@main
Expand Down
2 changes: 1 addition & 1 deletion actions/setup/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ The number of runtime JavaScript, JSON, and shell files copied to the destinatio

```yaml
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7
with:
sparse-checkout: |
actions
Expand Down
8 changes: 4 additions & 4 deletions docs/src/content/docs/guides/github-actions-primer.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7
- name: Run tests
run: npm test
```
Expand All @@ -41,14 +41,14 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7
- run: npm run build

test:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7
- run: npm test
```

Expand All @@ -59,7 +59,7 @@ jobs:
```yaml
steps:
# Action step - uses a pre-built action
- uses: actions/checkout@v6
- uses: actions/checkout@v7

# Run step - executes a shell command
- name: Install dependencies
Expand Down
4 changes: 2 additions & 2 deletions docs/src/content/docs/reference/cross-repository.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,12 @@ engine:

steps:
- name: Checkout main repo
uses: actions/checkout@v6
uses: actions/checkout@v7
with:
path: main-repo

- name: Checkout secondary repo
uses: actions/checkout@v6
uses: actions/checkout@v7
with:
repository: org/secondary-repo
token: ${{ secrets.CROSS_REPO_PAT }}
Expand Down
2 changes: 1 addition & 1 deletion docs/src/content/docs/reference/frontmatter.md
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ Each runtime takes a required `version` string, plus optional `action-repo` and

| Runtime | Default Version | Default Setup Action |
|---------|----------------|---------------------|
| `node` | 24 | `actions/setup-node@v6` |
| `node` | 24 | `actions/setup-node@v7` |
| `python` | 3.12 | `actions/setup-python@v5` |
| `go` | 1.25 | `actions/setup-go@v5` |
| `uv` | latest | `astral-sh/setup-uv@v5` |
Expand Down
2 changes: 1 addition & 1 deletion docs/src/content/docs/reference/imports.md
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ jobs:
outputs:
artifact_name: ${{ steps.build.outputs.artifact_name }}
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7
- name: Build
id: build
run: |
Expand Down
2 changes: 1 addition & 1 deletion docs/src/content/docs/reference/playwright.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ on:
- 'docs/astro.config.mjs'

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7
with:
persist-credentials: false
- working-directory: ./docs
Expand Down
6 changes: 3 additions & 3 deletions docs/src/content/docs/reference/steps-jobs.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
super_linter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7
- name: Run Super-Linter
uses: super-linter/super-linter@v7
env:
Expand Down Expand Up @@ -123,7 +123,7 @@ jobs:
group: my-runner-group
labels: [self-hosted, linux]
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7
```

When imports define the same `jobs.<job-id>.setup-steps` or `jobs.<job-id>.pre-steps`, gh-aw merges that field deterministically: imported steps run first, then main-workflow steps. The two fields stay separate; `setup-steps` are never folded into `pre-steps` or vice versa.
Expand Down Expand Up @@ -185,7 +185,7 @@ jobs:
env:
NODE_ENV: production
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7
- run: npm ci && npm run build
```

Expand Down
5 changes: 0 additions & 5 deletions pkg/actionpins/data/action_pins.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@
"version": "v6.1.0",
"sha": "55cc8345863c7cc4c66a329aec7e433d2d1c52a9"
},
"actions/checkout@v6.0.2": {
"repo": "actions/checkout",
"version": "v6.0.2",
"sha": "de0fac2e4500dabe0009e67214ff5f5447ce83dd"
},
"actions/checkout@v7.0.1": {
"repo": "actions/checkout",
"version": "v7.0.1",
Expand Down
2 changes: 1 addition & 1 deletion pkg/workflow/compiler_yaml_checkout.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func (c *Compiler) generateRepositoryImportCheckouts(yaml *strings.Builder, repo

// Generate a sanitized directory name for the checkout
// Use a consistent format: owner-repo-ref
// NOTE: Path must be relative to GITHUB_WORKSPACE for actions/checkout@v6
// NOTE: Path must be relative to GITHUB_WORKSPACE for actions/checkout@v7
sanitizedRef := sanitizeRefForPath(ref)
checkoutPath := fmt.Sprintf(".github/aw/imports/%s-%s-%s", owner, repo, sanitizedRef)

Expand Down
5 changes: 0 additions & 5 deletions pkg/workflow/data/action_pins.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@
"version": "v6.1.0",
"sha": "55cc8345863c7cc4c66a329aec7e433d2d1c52a9"
},
"actions/checkout@v6.0.2": {
"repo": "actions/checkout",
"version": "v6.0.2",
"sha": "de0fac2e4500dabe0009e67214ff5f5447ce83dd"
},
"actions/checkout@v7.0.1": {
"repo": "actions/checkout",
"version": "v7.0.1",
Expand Down
2 changes: 1 addition & 1 deletion pkg/workflow/schema_validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ func getFieldExample(fieldPath string, err error) string {
"concurrency": "Example: concurrency: production or concurrency:\\n group: ${{ github.workflow }}\\n cancel-in-progress: true",
"env": "Example: env:\\n NODE_ENV: production",
"tools": "Example: tools:\\n github:\\n allowed: [list_issues]",
"steps": "Example: steps:\\n - name: Checkout\\n uses: actions/checkout@v6",
"steps": "Example: steps:\\n - name: Checkout\\n uses: actions/checkout@v7",
"jobs": "Example: jobs:\\n build:\\n runs-on: ubuntu-latest\\n steps:\\n - run: echo 'hello'",
"strategy": "Example: strategy:\\n matrix:\\n os: [ubuntu-latest, windows-latest]",
"container": "Example: container: node:20 or container:\\n image: node:20\\n options: --user root",
Expand Down
2 changes: 1 addition & 1 deletion scripts/README-conformance.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ jobs:
conformance:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7
- name: Run conformance checks
run: ./scripts/check-safe-outputs-conformance.sh
```
Expand Down
Loading