Skip to content

Commit 0121ca3

Browse files
authored
Merge pull request #153 from ONSdigital/feature/update_versioning
Feature/update versioning
2 parents 073b852 + 234194d commit 0121ca3

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
## Description
2+
<!-- Explain what changes were made and why -->
3+
4+
## Version Bump Checklist
5+
- [ ] I have updated `version.txt` with a new version number.
6+
- [ ] I have verified that the new version follows semantic versioning (`MAJOR.MINOR.PATCH`).
7+
8+
## Additional Notes
9+
New builds should be made via concourse and follow the internal release guidelines documented on confluence.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Enforce Version Bump
2+
permissions:
3+
contents: read
4+
pull-requests: read
5+
on:
6+
pull_request:
7+
branches:
8+
- main
9+
10+
jobs:
11+
check-version-bump:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
- name: Get changed files
18+
id: changed-files
19+
uses: tj-actions/changed-files@cbda684547adc8c052d50711417fa61b428a9f88
20+
21+
- name: Check if version.txt was modified
22+
run: |
23+
if ! echo "${{ steps.changed-files.outputs.all_changed_files }}" | grep -q "version.txt"; then
24+
echo "Error: version.txt was not modified in this PR. Please bump the version number."
25+
exit 1
26+
fi

version.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1.3.55

0 commit comments

Comments
 (0)