Skip to content

Commit 8255b30

Browse files
committed
chore: update gh-aw CLI version to v0.72.1 across workflows
1 parent 1f12cde commit 8255b30

5 files changed

Lines changed: 49 additions & 25 deletions

File tree

.github/workflows/agentics-maintenance.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ jobs:
174174
await main();
175175
176176
- name: Install gh-aw
177-
uses: github/gh-aw-actions/setup-cli@v0.72.1
177+
uses: github/gh-aw-actions/setup-cli@f8495a686e66770ae977f82732f34d7340ee42a4 # v0.72.1
178178
with:
179179
version: v0.72.1
180180

@@ -309,7 +309,7 @@ jobs:
309309
await main();
310310
311311
- name: Install gh-aw
312-
uses: github/gh-aw-actions/setup-cli@v0.72.1
312+
uses: github/gh-aw-actions/setup-cli@f8495a686e66770ae977f82732f34d7340ee42a4 # v0.72.1
313313
with:
314314
version: v0.72.1
315315

@@ -355,7 +355,7 @@ jobs:
355355
await main();
356356
357357
- name: Install gh-aw
358-
uses: github/gh-aw-actions/setup-cli@v0.72.1
358+
uses: github/gh-aw-actions/setup-cli@f8495a686e66770ae977f82732f34d7340ee42a4 # v0.72.1
359359
with:
360360
version: v0.72.1
361361

@@ -489,7 +489,7 @@ jobs:
489489
await main();
490490
491491
- name: Install gh-aw
492-
uses: github/gh-aw-actions/setup-cli@v0.72.1
492+
uses: github/gh-aw-actions/setup-cli@f8495a686e66770ae977f82732f34d7340ee42a4 # v0.72.1
493493
with:
494494
version: v0.72.1
495495

.github/workflows/ci.yml

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
env:
2424
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2525

26-
add:
26+
add-local-source:
2727
runs-on: ubuntu-latest
2828
needs: [compile]
2929
steps:
@@ -37,6 +37,7 @@ jobs:
3737

3838
- name: Test gh aw add from local sources
3939
run: |
40+
set -euo pipefail
4041
TARGET_REPO=$(mktemp -d)
4142
git init "$TARGET_REPO"
4243
cd "$TARGET_REPO"
@@ -45,9 +46,33 @@ jobs:
4546
env:
4647
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4748

49+
add-named-source:
50+
runs-on: ubuntu-latest
51+
needs: [compile]
52+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
53+
steps:
54+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
55+
56+
- name: Set up gh-aw CLI
57+
uses: github/gh-aw-actions/setup-cli@f8495a686e66770ae977f82732f34d7340ee42a4 # setup-cli action pin (installs CLI v0.72.1 below)
58+
with:
59+
version: v0.72.1
60+
github-token: ${{ secrets.GITHUB_TOKEN }}
61+
62+
- name: Test gh aw add from named sources
63+
run: |
64+
set -euo pipefail
65+
TARGET_REPO=$(mktemp -d)
66+
git init "$TARGET_REPO"
67+
cd "$TARGET_REPO"
68+
gh aw add "${{ github.repository }}/copilot-token-audit" "${{ github.repository }}/copilot-token-optimizer"
69+
gh aw compile --validate --no-emit
70+
env:
71+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
72+
4873
run:
4974
runs-on: ubuntu-latest
50-
needs: [add]
75+
needs: [add-local-source, add-named-source]
5176
permissions:
5277
actions: write
5378
contents: read

.github/workflows/copilot-setup-steps.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,12 @@ jobs:
2828
- name: Checkout repository
2929
uses: actions/checkout@v6
3030
- name: Install gh-aw extension
31-
uses: github/gh-aw-actions/setup-cli@bc56a0cad2f450c562810785ef38649c04db812a # v0.72.1
31+
uses: github/gh-aw-actions/setup-cli@f8495a686e66770ae977f82732f34d7340ee42a4 # v0.72.1
3232
with:
3333
version: v0.72.1
3434
- name: Smoke test published workflows via gh aw add
3535
env:
3636
GH_TOKEN: ${{ github.token }}
37-
SOURCE_DIR: ${{ github.workspace }}/workflows
3837
run: |
3938
set -euo pipefail
4039
@@ -44,7 +43,7 @@ jobs:
4443
cd "$temp_dir"
4544
git init -q
4645
47-
gh aw add "$SOURCE_DIR/copilot-token-audit.md" "$SOURCE_DIR/copilot-token-optimizer.md"
46+
gh aw add "${{ github.repository }}/copilot-token-audit" "${{ github.repository }}/copilot-token-optimizer"
4847
gh aw compile --validate --no-emit
4948
- name: Validate published workflows
5049
env:

.github/workflows/release.lock.yml

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/release.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ jobs:
4545
RELEASE_TARGET: ${{ inputs.target }}
4646

4747
- name: Set up gh-aw CLI
48-
uses: github/gh-aw-actions/setup-cli@f8495a686e66770ae977f82732f34d7340ee42a4 # v0.71.4
48+
uses: github/gh-aw-actions/setup-cli@f8495a686e66770ae977f82732f34d7340ee42a4 # v0.72.1
4949
with:
50-
version: v0.71.4
50+
version: v0.72.1
5151
github-token: ${{ secrets.GITHUB_TOKEN }}
5252

5353
- name: Compile repository workflows

0 commit comments

Comments
 (0)