File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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 :
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"
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
Original file line number Diff line number Diff 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
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 :
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments