Skip to content

Commit deefb80

Browse files
nodeselectorCopilot
andcommitted
chore: update demos, CI workflows, and build tooling
Refresh VHS demo tapes and fixture workflows, adjust release/test CI workflows, and update Makefile and .gitignore. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent b0603b7 commit deefb80

35 files changed

Lines changed: 89 additions & 1283 deletions

.github/workflows/actions.lock

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# This file is machine-generated by `gh actions-pin`.
2+
# Do not edit by hand; run `gh actions-pin` to update.
3+
# Docs: https://gh.io/actions-lockfile
4+
version: 'v0.0.1'
5+
workflows:
6+
'.github/workflows/release.yml':
7+
- 'actions/checkout@v6.0.2:sha1-de0fac2e4500dabe0009e67214ff5f5447ce83dd'
8+
- 'cli/gh-extension-precompile@v2.1.0:sha1-9e2237c30f869ad3bcaed6a4be2cd43564dd421b'
9+
'.github/workflows/sync-early-access-release.yml':
10+
- 'actions/checkout@v6.0.2:sha1-de0fac2e4500dabe0009e67214ff5f5447ce83dd'
11+
'.github/workflows/test.yml':
12+
- 'actions/checkout@v5.0.1:sha1-93cb6efe18208431cddfb8368fd83d5badbf9bfd'
13+
- 'actions/setup-go@v6.4.0:sha1-4a3601121dd01d1626a1e23e37211e3254c1c06c'
14+
dependencies:
15+
'actions/attest-build-provenance@predicate@1.1.4:sha1-36fa7d009e22618ca7cd599486979b8150596c74':
16+
tag: 'predicate@1.1.4'
17+
branch: 'main'
18+
commit: 'sha1-36fa7d009e22618ca7cd599486979b8150596c74'
19+
owner_id: 44036562
20+
repo_id: 760702757
21+
'actions/attest-build-provenance@v1.4.4:sha1-ef244123eb79f2f7a7e75d99086184180e6d0018':
22+
tag: 'v1.4.4'
23+
branch: 'main'
24+
commit: 'sha1-ef244123eb79f2f7a7e75d99086184180e6d0018'
25+
owner_id: 44036562
26+
repo_id: 760702757
27+
uses:
28+
- 'actions/attest-build-provenance@predicate@1.1.4:sha1-36fa7d009e22618ca7cd599486979b8150596c74'
29+
- 'actions/attest@v1.4.1:sha1-67422f5511b7ff725f4dbd6fb9bd2cd925c65a8d'
30+
'actions/attest@v1.4.1:sha1-67422f5511b7ff725f4dbd6fb9bd2cd925c65a8d':
31+
tag: 'v1.4.1'
32+
branch: 'main'
33+
commit: 'sha1-67422f5511b7ff725f4dbd6fb9bd2cd925c65a8d'
34+
owner_id: 44036562
35+
repo_id: 760701061
36+
'actions/checkout@v5.0.1:sha1-93cb6efe18208431cddfb8368fd83d5badbf9bfd':
37+
tag: 'v5.0.1'
38+
branch: 'releases/v5'
39+
commit: 'sha1-93cb6efe18208431cddfb8368fd83d5badbf9bfd'
40+
owner_id: 44036562
41+
repo_id: 197814629
42+
'actions/checkout@v6.0.2:sha1-de0fac2e4500dabe0009e67214ff5f5447ce83dd':
43+
tag: 'v6.0.2'
44+
branch: 'main'
45+
commit: 'sha1-de0fac2e4500dabe0009e67214ff5f5447ce83dd'
46+
owner_id: 44036562
47+
repo_id: 197814629
48+
'actions/setup-go@v5.6.0:sha1-40f1582b2485089dde7abd97c1529aa768e1baff':
49+
tag: 'v5.6.0'
50+
branch: 'releases/v5'
51+
commit: 'sha1-40f1582b2485089dde7abd97c1529aa768e1baff'
52+
owner_id: 44036562
53+
repo_id: 192624594
54+
'actions/setup-go@v6.4.0:sha1-4a3601121dd01d1626a1e23e37211e3254c1c06c':
55+
tag: 'v6.4.0'
56+
branch: 'main'
57+
commit: 'sha1-4a3601121dd01d1626a1e23e37211e3254c1c06c'
58+
owner_id: 44036562
59+
repo_id: 192624594
60+
'cli/gh-extension-precompile@v2.1.0:sha1-9e2237c30f869ad3bcaed6a4be2cd43564dd421b':
61+
tag: 'v2.1.0'
62+
branch: 'trunk'
63+
commit: 'sha1-9e2237c30f869ad3bcaed6a4be2cd43564dd421b'
64+
owner_id: 59704711
65+
repo_id: 421583656
66+
uses:
67+
- 'actions/attest-build-provenance@v1.4.4:sha1-ef244123eb79f2f7a7e75d99086184180e6d0018'
68+
- 'actions/setup-go@v5.6.0:sha1-40f1582b2485089dde7abd97c1529aa768e1baff'

.github/workflows/release.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ jobs:
1212
release:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v6
16-
- uses: cli/gh-extension-precompile@v2
15+
- uses: actions/checkout@v6.0.2
16+
- uses: cli/gh-extension-precompile@v2.1.0
1717
with:
1818
generate_attestations: true
1919
go_version_file: go.mod
@@ -26,12 +26,3 @@ jobs:
2626
tag: ${{ github.ref_name }}
2727
secrets:
2828
ACTIONS_LOCKED_DEPENDENCIES_RELEASE_PAT: ${{ secrets.ACTIONS_LOCKED_DEPENDENCIES_RELEASE_PAT }}
29-
30-
# Automatically generated and managed by: `gh actions-pin --write <workflow-path>`
31-
dependencies:
32-
- github.com/actions/attest-build-provenance/predicate@36fa7d009e22618ca7cd599486979b8150596c74:sha1-36fa7d009e22618ca7cd599486979b8150596c74
33-
- github.com/actions/attest-build-provenance@v1:sha1-ef244123eb79f2f7a7e75d99086184180e6d0018
34-
- github.com/actions/attest@67422f5511b7ff725f4dbd6fb9bd2cd925c65a8d:sha1-67422f5511b7ff725f4dbd6fb9bd2cd925c65a8d
35-
- github.com/actions/checkout@v6:sha1-de0fac2e4500dabe0009e67214ff5f5447ce83dd
36-
- github.com/actions/setup-go@v5:sha1-40f1582b2485089dde7abd97c1529aa768e1baff
37-
- github.com/cli/gh-extension-precompile@v2:sha1-9e2237c30f869ad3bcaed6a4be2cd43564dd421b

.github/workflows/sync-early-access-release.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
sync:
2525
runs-on: ubuntu-latest
2626
steps:
27-
- uses: actions/checkout@v6
27+
- uses: actions/checkout@v6.0.2
2828
- name: Publish early access release
2929
env:
3030
SOURCE_TOKEN: ${{ github.token }}
@@ -33,7 +33,3 @@ jobs:
3333
TARGET_REPOSITORY: github-early-access/actions-locked-dependencies
3434
RELEASE_TAG: ${{ inputs.tag }}
3535
run: script/sync-early-access-release "$RELEASE_TAG"
36-
37-
# Automatically generated and managed by: `gh actions-pin --write <workflow-path>`
38-
dependencies:
39-
- github.com/actions/checkout@v6:sha1-de0fac2e4500dabe0009e67214ff5f5447ce83dd

.github/workflows/test.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,8 @@ jobs:
1010
go-test:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v5
14-
- uses: actions/setup-go@v6
13+
- uses: actions/checkout@v5.0.1
14+
- uses: actions/setup-go@v6.4.0
1515
with:
1616
go-version-file: go.mod
1717
- run: go test ./...
18-
19-
# Automatically generated and managed by: `gh actions-pin --write <workflow-path>`
20-
dependencies:
21-
- github.com/actions/checkout@v5:sha1-93cb6efe18208431cddfb8368fd83d5badbf9bfd
22-
- github.com/actions/setup-go@v6:sha1-4a3601121dd01d1626a1e23e37211e3254c1c06c

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
/gh-actions-pin
22
/gh-actions-pin.exe
3+
4+
# VHS demo recordings
5+
/demo/vhs/out/

Makefile

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,24 @@
11
BIN := gh-actions-pin
2+
EXT_NAME := gh-actions-pin
3+
EXT_DIR := $(HOME)/.local/share/gh/extensions/$(EXT_NAME)
24

3-
.PHONY: build test install reinstall
5+
.PHONY: build test install reinstall uninstall
46

57
build:
68
go build -o $(BIN) ./cmd/gh-actions-pin
79

810
test:
911
go test ./...
1012

13+
# install/reinstall work from any checkout — main repo or worktree — by
14+
# placing the built binary directly into gh's extension dir. We skip
15+
# `gh extension install .` because it rejects worktree directories whose
16+
# basename doesn't start with `gh-`.
1117
install: build
12-
gh extension install .
18+
@mkdir -p $(EXT_DIR)
19+
cp $(BIN) $(EXT_DIR)/$(EXT_NAME)
1320

14-
reinstall: build
15-
-gh extension remove actions-pin
16-
gh extension install .
21+
reinstall: uninstall install
22+
23+
uninstall:
24+
rm -rf $(EXT_DIR)

0 commit comments

Comments
 (0)