@@ -23,63 +23,19 @@ concurrency:
2323 cancel-in-progress : false
2424
2525jobs :
26- ci-readme :
27- runs-on : ubuntu-latest
28- environment : release
29- steps :
30- - uses : actions/create-github-app-token@v1
31- id : github-app
32- with :
33- app-id : ${{ vars.GH_APP_ID }}
34- private-key : ${{ secrets.GH_APP_PRIVATE_KEY }}
35- - name : Checkout
36- uses : actions/checkout@v4
37- with :
38- fetch-depth : 0
39- token : ${{ steps.github-app.outputs.token }}
40- - uses : cloudposse-github-actions/readme@main
41- with :
42- token : ${{ steps.github-app.outputs.token }}
43- readme_enabled : true
44- banner_enabled : true
45- validate_readme : true
46- commit_method : ' commit'
47- commit_push_options : ' --force-with-lease'
26+ readme :
27+ uses : cloudposse-github-actions/.github/.github/workflows/shared-readme.yml@main
28+ name : " readme"
29+ if : ${{ github.event_name == 'push' }}
30+ with :
31+ runs-on : ${{ inputs.runs-on }}
32+ secrets : inherit
4833
49- release-controller :
50- runs-on : ubuntu-latest
51- needs : [ci-readme]
52- permissions :
53- # write permission is required to create a github release
54- contents : write
55- # write permission is required for autolabeler
56- # otherwise, read permission is required at least
57- pull-requests : write
58- steps :
59- - name : Checkout
60- uses : actions/checkout@v4
61- with :
62- fetch-depth : 0
63-
64- - name : Draft release
65- id : release
66- uses : cloudposse/github-action-auto-release@v1
67- with :
68- token : ${{ secrets.GITHUB_TOKEN }}
69- config-name : auto-release.yml
70-
71- major-release-tagger :
72- runs-on : ubuntu-latest
73- needs : [release-controller]
74- steps :
75- - uses : cloudposse/github-action-major-release-tagger@v1
76- with :
77- token : ${{ secrets.GITHUB_TOKEN }}
78-
79- release-branch-manager :
80- runs-on : ubuntu-latest
81- needs : [release-controller]
82- steps :
83- - uses : cloudposse/github-action-release-branch-manager@v1
84- with :
85- token : ${{ secrets.GITHUB_TOKEN }}
34+ release :
35+ needs : [ readme ]
36+ name : " release"
37+ if : ${{ always() && github.event_name == 'push' && needs.ci.result == 'success' }}
38+ uses : cloudposse-github-actions/.github/.github/workflows/shared-auto-release.yml@main
39+ with :
40+ publish : ${{ inputs.publish }}
41+ secrets : inherit
0 commit comments