File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Trigger Release Binaries
2+
3+ on :
4+ push :
5+ branches :
6+ - trigger-release-binaries-latest-tag
7+
8+ permissions :
9+ actions : write
10+ contents : read
11+
12+ jobs :
13+ trigger :
14+ runs-on : ubuntu-24.04
15+ steps :
16+ - name : Checkout tags
17+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
18+ with :
19+ fetch-depth : 0
20+
21+ - name : Resolve latest tag
22+ id : tag
23+ shell : bash
24+ run : |
25+ set -euo pipefail
26+
27+ git fetch --tags --force
28+ TAG="$(
29+ git tag --list 'v*' --sort=-v:refname \
30+ | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+(-[A-Za-z0-9.+-]+)?$' \
31+ | head -n 1
32+ )"
33+
34+ if [[ -z "${TAG}" ]]; then
35+ echo "::error::No SemVer-style v* tag found"
36+ exit 1
37+ fi
38+
39+ echo "tag=${TAG}" >> "$GITHUB_OUTPUT"
40+ echo "Resolved release tag: ${TAG}"
41+
42+ - name : Trigger release-binaries.yaml
43+ env :
44+ GH_TOKEN : ${{ github.token }}
45+ GH_REPO : ${{ github.repository }}
46+ TAG : ${{ steps.tag.outputs.tag }}
47+ shell : bash
48+ run : |
49+ set -euo pipefail
50+
51+ gh workflow run release-binaries.yaml --ref main --field tag="${TAG}"
You can’t perform that action at this time.
0 commit comments