File tree Expand file tree Collapse file tree 2 files changed +17
-32
lines changed
Expand file tree Collapse file tree 2 files changed +17
-32
lines changed Original file line number Diff line number Diff line change 1+ {
2+ "permissions" : {
3+ "allow" : [
4+ " Bash(git ls-tree:*)" ,
5+ " Bash(git for-each-ref:*)" ,
6+ " Bash(git grep:*)" ,
7+ " Bash(gh api:*)" ,
8+ " Bash(gh release list:*)" ,
9+ " Bash(gh pr view:*)"
10+ ]
11+ }
12+ }
Original file line number Diff line number Diff line change 11name : Release Verification
22
33on :
4- release :
5- types : [published]
4+ push :
5+ branches :
6+ - ' main'
67 workflow_dispatch :
7- inputs :
8- tag :
9- description : ' Release tag to test (leave empty for latest release)'
10- required : false
11- type : string
128
139jobs :
14- resolve-tag :
15- runs-on : ubuntu-latest
16- outputs :
17- tag : ${{ steps.get-tag.outputs.tag }}
18- steps :
19- - name : Get tag to test
20- id : get-tag
21- env :
22- GH_TOKEN : ${{ github.token }}
23- run : |
24- if [ -n "${{ inputs.tag }}" ]; then
25- echo "tag=${{ inputs.tag }}" >> $GITHUB_OUTPUT
26- elif [ -n "${{ github.event.release.tag_name }}" ]; then
27- echo "tag=${{ github.event.release.tag_name }}" >> $GITHUB_OUTPUT
28- else
29- TAG=$(gh release view --repo ${{ github.repository }} --json tagName -q '.tagName')
30- echo "tag=$TAG" >> $GITHUB_OUTPUT
31- fi
32- - name : Print tag
33- run : echo "Testing tag ${{ steps.get-tag.outputs.tag }}"
34-
3510 test-linux :
36- needs : resolve-tag
3711 strategy :
3812 max-parallel : 4
3913 matrix :
5327 timeout-minutes : 5
5428 steps :
5529 - name : Test published action
56- uses : twingate/github-action@latest
30+ uses : twingate/github-action
5731 with :
5832 service-key : ${{ secrets[matrix.service-key] }}
5933
7246 run : journalctl -u twingate
7347
7448 test-windows :
75- needs : resolve-tag
7649 strategy :
7750 max-parallel : 4
7851 matrix :
8861 timeout-minutes : 6
8962 steps :
9063 - name : Test published action
91- uses : twingate/github-action@latest
64+ uses : twingate/github-action
9265 with :
9366 service-key : ${{ secrets[matrix.service-key] }}
9467
You can’t perform that action at this time.
0 commit comments