Skip to content

Commit acea8c1

Browse files
committed
standardize builds using tempalte
1 parent 145218b commit acea8c1

File tree

3 files changed

+20
-15
lines changed

3 files changed

+20
-15
lines changed

.github/workflows/pr.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,22 @@ on:
66
- "main"
77
- "master"
88
- "development"
9-
- "releases/v*"
109
pull_request:
1110
branches:
12-
- "releases/v*"
1311
- development
1412

1513
jobs:
1614
tests:
1715
uses: ./.github/workflows/tests.yml
1816
secrets: inherit
1917

20-
formatCheck:
18+
# Format PR
19+
format_check:
2120
name: Checks Source Code Formatting
2221
runs-on: ubuntu-24.04
2322
steps:
2423
- name: Checkout Repository
25-
uses: actions/checkout@v3
24+
uses: actions/checkout@v4
2625

2726
- uses: Ortus-Solutions/[email protected]
2827
with:

.github/workflows/release.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717
type: boolean
1818

1919
env:
20-
MODULE_ID: cbvalidation
20+
MODULE_ID: ${{ github.event.repository.name }}
2121
SNAPSHOT: ${{ inputs.snapshot || false }}
2222

2323
jobs:
@@ -29,7 +29,7 @@ jobs:
2929
runs-on: ubuntu-24.04
3030
steps:
3131
- name: Checkout Repository
32-
uses: actions/checkout@v3
32+
uses: actions/checkout@v4
3333

3434
- name: Setup CommandBox
3535
uses: Ortus-Solutions/[email protected]
@@ -64,7 +64,7 @@ jobs:
6464
box task run taskfile=build/Build target=run :version=${{ env.VERSION }} :projectName=${{ env.MODULE_ID }} :buildID=${{ github.run_number }} :branch=${{ env.BRANCH }}
6565
6666
- name: Commit Changelog To Master
67-
uses: EndBug/[email protected].1
67+
uses: EndBug/[email protected].4
6868
if: env.SNAPSHOT == 'false'
6969
with:
7070
author_name: Github Actions
@@ -73,7 +73,7 @@ jobs:
7373
add: changelog.md
7474

7575
- name: Tag Version
76-
uses: rickstaa/action-create-tag@v1.6.1
76+
uses: rickstaa/action-create-tag@v1.7.2
7777
if: env.SNAPSHOT == 'false'
7878
with:
7979
tag: "v${{ env.VERSION }}"
@@ -82,7 +82,7 @@ jobs:
8282

8383
- name: Upload Build Artifacts
8484
if: success()
85-
uses: actions/upload-artifact@v3
85+
uses: actions/upload-artifact@v4
8686
with:
8787
name: ${{ env.MODULE_ID }}
8888
path: |
@@ -118,7 +118,7 @@ jobs:
118118
box forgebox publish --force
119119
120120
- name: Create Github Release
121-
uses: taiki-e/create-gh-release-action@v1.6.2
121+
uses: taiki-e/create-gh-release-action@v1.8.2
122122
continue-on-error: true
123123
if: env.SNAPSHOT == 'false'
124124
with:
@@ -138,7 +138,7 @@ jobs:
138138
steps:
139139
# Checkout development
140140
- name: Checkout Repository
141-
uses: actions/checkout@v3
141+
uses: actions/checkout@v4
142142
with:
143143
ref: development
144144

@@ -148,7 +148,7 @@ jobs:
148148
forgeboxAPIKey: ${{ secrets.FORGEBOX_TOKEN }}
149149

150150
- name: Download build artifacts
151-
uses: actions/download-artifact@v2
151+
uses: actions/download-artifact@v4
152152
with:
153153
name: ${{ env.MODULE_ID }}
154154
path: .tmp
@@ -165,7 +165,7 @@ jobs:
165165
166166
# Commit it back to development
167167
- name: Commit Version Bump
168-
uses: EndBug/[email protected].1
168+
uses: EndBug/[email protected].4
169169
with:
170170
author_name: Github Actions
171171
author_email: [email protected]

.github/workflows/snapshot.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,14 @@ on:
44
push:
55
branches:
66
- 'development'
7+
78
workflow_dispatch:
89

10+
# Unique group name per workflow-branch/tag combo
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
915
jobs:
1016
##########################################################################################
1117
# Module Tests
@@ -21,15 +27,15 @@ jobs:
2127
name: Code Auto-Formatting
2228
runs-on: ubuntu-24.04
2329
steps:
24-
- uses: actions/checkout@v3
30+
- uses: actions/checkout@v4
2531

2632
- name: Auto-format
2733
uses: Ortus-Solutions/[email protected]
2834
with:
2935
cmd: run-script format
3036

3137
- name: Commit Format Changes
32-
uses: stefanzweifel/git-auto-commit-action@v4
38+
uses: stefanzweifel/git-auto-commit-action@v5
3339
with:
3440
commit_message: Apply cfformat changes
3541

0 commit comments

Comments
 (0)