Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 4 additions & 10 deletions .github/workflows/automated_versioning.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ jobs:
pull-requests: write

steps:
- name: Checkout repository
- name: Checkout main branch
uses: actions/checkout@v4
with:
ref: main

- name: Read and bump version
- name: Get version from main branch
id: old_version
shell: bash
run: |
Expand All @@ -27,7 +27,7 @@ jobs:
- name: Checkout feature branch
uses: actions/checkout@v4

- name: Get version.txt contents on feature branch
- name: Get version from feature branch
id: new_version
shell: bash
run: |
Expand All @@ -44,7 +44,7 @@ jobs:
if: ${{ steps.old_version.outputs.OLD_VERSION == steps.new_version.outputs.NEW_VERSION }}
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Auto-bumping version.tx
commit_message: Auto-bumping version.txt

- name: Update CHANGELOG.md
run: |
Expand All @@ -64,9 +64,3 @@ jobs:
}
{ print }
' CHANGELOG.md > CHANGELOG.tmp && mv CHANGELOG.tmp CHANGELOG.md

- name: Commit and push new version
run: |
git add .
git commit -m "Bump version to ${{ steps.bump.outputs.new_version }}"
git push
2 changes: 1 addition & 1 deletion Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ class Program
{
static void Main(string[] args)
{
Console.WriteLine("Testing out version bump");
Console.WriteLine("Testing out new version bump");
}
}
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.7
0.0.8