1616 default : false
1717 type : boolean
1818
19+ # Manual Trigger
20+ workflow_dispatch :
1921env :
20- MODULE_ID : cbdebugger
22+ MODULE_ID : ${{ github.event.repository.name }}
23+ JDK : 21
2124 SNAPSHOT : ${{ inputs.snapshot || false }}
25+ BUILD_ID : ${{ github.run_number }}
2226
2327jobs :
2428 # #########################################################################################
2529 # Build & Publish
2630 # #########################################################################################
2731 build :
2832 name : Build & Publish
29- runs-on : ubuntu-20.04
33+ runs-on : ubuntu-24.04
34+ permissions :
35+ checks : write
36+ pull-requests : write
37+ contents : write
38+ issues : write
3039 steps :
3140 - name : Checkout Repository
3241 uses : actions/checkout@v4
4150 with :
4251 forgeboxAPIKey : ${{ secrets.FORGEBOX_TOKEN }}
4352
53+ - name : Setup Java
54+ uses : actions/setup-java@v4
55+ with :
56+ distribution : " temurin"
57+ java-version : ${{ env.JDK }}
58+
4459 - name : " Setup Environment Variables For Build Process"
4560 id : current_version
4661 run : |
5570 fi
5671
5772 - name : Update changelog [unreleased] with latest version
58- uses : thomaseizinger/keep-a-changelog-new-release@1.3 .0
73+ uses : thomaseizinger/keep-a-changelog-new-release@3.1 .0
5974 if : env.SNAPSHOT == 'false'
6075 with :
6176 changelogPath : ./changelog.md
@@ -69,10 +84,10 @@ jobs:
6984 npm install -g markdownlint-cli
7085 markdownlint changelog.md --fix
7186 box install commandbox-docbox
72- box task run taskfile=build/Build target=run :version=${{ env.VERSION }} :projectName=${{ env.MODULE_ID }} :buildID=${{ github.run_number }} :branch=${{ env.BRANCH }}
87+ box task run taskfile=build/Build target=run :version=${{ env.VERSION }} :projectName=${{ env.MODULE_ID }} :buildID=${{ env.BUILD_ID }} :branch=${{ env.BRANCH }}
7388
74- - name : Commit Changelog To Master
75- uses : EndBug/add-and-commit@v9.1.3
89+ - name : Commit Changelog [unreleased] with latest version
90+ uses : EndBug/add-and-commit@v9.1.4
7691 if : env.SNAPSHOT == 'false'
7792 with :
7893 author_name : Github Actions
@@ -126,7 +141,7 @@ jobs:
126141 box forgebox publish --force
127142
128143 - name : Create Github Release
129- uses : taiki-e/create-gh-release-action@v1.8.0
144+ uses : taiki-e/create-gh-release-action@v1.8.2
130145 continue-on-error : true
131146 if : env.SNAPSHOT == 'false'
132147 with :
@@ -135,14 +150,31 @@ jobs:
135150 token : ${{ secrets.GITHUB_TOKEN }}
136151 ref : refs/tags/v${{ env.VERSION }}
137152
153+ - name : Inform Slack
154+ if : ${{ always() }}
155+ uses : rtCamp/action-slack-notify@v2
156+ env :
157+ SLACK_CHANNEL : coding
158+ SLACK_COLOR : ${{ job.status }} # or a specific color like 'green' or '#ff00ff'
159+ SLACK_ICON_EMOJI : " :bell:"
160+ SLACK_MESSAGE : " Module ${{ env.MODULE_ID }} v${{ env.VERSION }} Built with ${{ job.status }}!"
161+ SLACK_TITLE : " ColdBox Module ${{ env.MODULE_ID }}"
162+ SLACK_USERNAME : CI
163+ SLACK_WEBHOOK : ${{ secrets.SLACK_WEBHOOK_URL }}
164+
138165 # #########################################################################################
139166 # Prep Next Release
140167 # #########################################################################################
141168 prep_next_release :
142169 name : Prep Next Release
143170 if : github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
144- runs-on : ubuntu-20 .04
171+ runs-on : ubuntu-24 .04
145172 needs : [ build ]
173+ permissions :
174+ checks : write
175+ pull-requests : write
176+ contents : write
177+ issues : write
146178 steps :
147179 # Checkout development
148180 - name : Checkout Repository
@@ -173,7 +205,7 @@ jobs:
173205
174206 # Commit it back to development
175207 - name : Commit Version Bump
176- uses : EndBug/add-and-commit@v9.1.3
208+ uses : EndBug/add-and-commit@v9.1.4
177209 with :
178210 author_name : Github Actions
179211 author_email : info@ortussolutions.com
0 commit comments