File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 11# This workflow will build a golang project
22# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
33
4- name : PR
4+ name : CI
55
66on :
77 pull_request :
Original file line number Diff line number Diff line change 11name : Release
22on :
3- push :
4- branches :
5- - main
3+ workflow_run :
4+ workflows :
5+ - " CI"
6+ types :
7+ - completed
68
79permissions :
810 contents : write
@@ -12,7 +14,8 @@ permissions:
1214
1315jobs :
1416 release :
15- # if: ${{ github.event.workflow_run.conclusion == 'success' }}
17+ if : ${{ github.event.workflow_run.conclusion == 'success' }} &&
18+ ${{ github.event.workflow_run.head_branch == 'main' }}
1619 runs-on : ubuntu-latest
1720 permissions :
1821 contents : write
3639 pushTag : true
3740 - name : Run GoReleaser
3841 uses : goreleaser/goreleaser-action@v6
42+ if : ${{ steps.svu.outputs.changed == 'true' }}
3943 with :
4044 # either 'goreleaser' (default) or 'goreleaser-pro'
4145 distribution : goreleaser
You can’t perform that action at this time.
0 commit comments