File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 11name : ci
22
3+ permissions :
4+ contents : write
5+ pull-requests : write
6+
37on :
48 push :
59 branches :
@@ -28,10 +32,18 @@ jobs:
2832 env :
2933 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3034 - uses : actions/upload-artifact@v4
35+ id : upload-artifact
3136 if : startsWith(github.ref , 'refs/tags/v') == false
3237 with :
3338 name : hcl2json
3439 path : dist/*
40+ - name : Post artifact link
41+ if : github.event_name == 'pull_request'
42+ uses : peter-evans/create-or-update-comment@v4
43+ with :
44+ issue-number : ${{ github.event.number }}
45+ body : |
46+ Build artifacts: [${{ steps.upload-artifact.outputs.artifact-url }}](${{ steps.upload-artifact.outputs.artifact-url }})
3547 - uses : goreleaser/goreleaser-action@v6
3648 if : startsWith(github.ref , 'refs/tags/v')
3749 with :
You can’t perform that action at this time.
0 commit comments