@@ -10,18 +10,34 @@ jobs:
1010 release :
1111 runs-on : ubuntu-latest
1212 steps :
13- - uses : actions/checkout@v4
13+ - uses : actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
1414 with :
1515 fetch-depth : 0
16- - uses : actions/setup-go@v5
16+ - uses : actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
1717 with :
1818 go-version-file : go.mod
19- - uses : GoCodeAlone/setup-wfctl@v1
20- with :
21- version : v0.63.2
19+ cache : false
20+ - name : Install wfctl v0.74.6
21+ env :
22+ GH_TOKEN : ${{ secrets.RELEASES_TOKEN || github.token }}
23+ WFCTL_VERSION : v0.74.6
24+ run : |
25+ set -euo pipefail
26+ runner_arch=$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/')
27+ asset="wfctl-linux-${runner_arch}"
28+ download_dir="$(mktemp -d)"
29+ gh release download "${WFCTL_VERSION}" \
30+ --repo GoCodeAlone/workflow \
31+ --pattern "${asset}" \
32+ --pattern checksums.txt \
33+ --dir "${download_dir}"
34+ (cd "${download_dir}" && grep " ${asset}$" checksums.txt | sha256sum -c -)
35+ mkdir -p "${RUNNER_TEMP}/wfctl-bin"
36+ install -m 0755 "${download_dir}/${asset}" "${RUNNER_TEMP}/wfctl-bin/wfctl"
37+ echo "${RUNNER_TEMP}/wfctl-bin" >> "$GITHUB_PATH"
2238 - name : Validate plugin contract for publish (pre-build)
2339 run : wfctl plugin validate-contract --for-publish --tag "${{ github.ref_name }}" .
24- - uses : goreleaser/goreleaser-action@v7
40+ - uses : goreleaser/goreleaser-action@5daf1e915a5f0af01ddbcd89a43b8061ff4f1a89 # v7.2.2
2541 with :
2642 distribution : goreleaser
2743 version : ' ~> v2'
6783 && github.repository == 'GoCodeAlone/workflow-plugin-github'
6884 steps :
6985 - name : Trigger registry manifest sync
70- uses : peter-evans/repository-dispatch@28959ce8df70de7be546dd1250a005dd32156697 # v4
86+ uses : peter-evans/repository-dispatch@28959ce8df70de7be546dd1250a005dd32156697 # v4.0.1
7187 with :
7288 token : ${{ secrets.repo_dispatch_token }}
7389 repository : GoCodeAlone/workflow-registry
0 commit comments