Skip to content

Commit 7fbf5cf

Browse files
author
Oleg
committed
Use only git to collect tags
1 parent 90bd1d0 commit 7fbf5cf

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.github/workflows/build-all.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,16 @@ env:
1010
jobs:
1111
versions:
1212
runs-on: ubuntu-latest
13-
permissions:
14-
contents: read
1513
outputs:
1614
revisions: ${{ steps.revisions.outputs.value }}
1715
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
fetch-tags: true
1819
- name: Collect available versions
1920
id: revisions
20-
env:
21-
GH_TOKEN: ${{ github.token }}
2221
run: |
23-
tags=$(gh api \
24-
-H "Accept: application/vnd.github+json" \
25-
-H "X-GitHub-Api-Version: 2022-11-28" \
26-
/repos/${{ github.repository }}/releases | jq -c '. | map(.tag_name)')
22+
tags=$(jq -c -n '$ARGS.positional + ["main"]' --args $(git tag --list))
2723
echo "value=$(echo $tags | jq -c .)" >> $GITHUB_OUTPUT
2824
2925
build:

0 commit comments

Comments
 (0)