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 : Publish Draft Releases
2+
3+ on :
4+ workflow_dispatch : {}
5+
6+ concurrency :
7+ group : publish-release
8+
9+ jobs :
10+ publish :
11+ name : Publish
12+ runs-on : ubuntu-22.04
13+ steps :
14+ - name : Publish Draft Release With Highest Semantic Version
15+ id : drafts
16+ env :
17+ GITHUB_TOKEN : ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }}
18+ uses : paketo-buildpacks/github-config/actions/release/publish-drafts@main
19+ with :
20+ repo : ${{ github.repository }}
21+
22+ failure :
23+ name : Alert on Failure
24+ runs-on : ubuntu-22.04
25+ needs : [ publish ]
26+ if : ${{ always() && needs.publish.result == 'failure' }}
27+ steps :
28+ - name : File Failure Alert Issue
29+ uses : paketo-buildpacks/github-config/actions/issue/file@main
30+ with :
31+ token : ${{ secrets.GITHUB_TOKEN }}
32+ repo : ${{ github.repository }}
33+ label : " failure:release"
34+ comment_if_exists : true
35+ issue_title : " Failure: Publish draft releases"
36+ issue_body : |
37+ Publish All Draft Releases workflow [failed](https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}).
38+ comment_body : |
39+ Another failure occurred: https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}
You can’t perform that action at this time.
0 commit comments