diff --git a/.github/workflows/automated_versioning.yml b/.github/workflows/automated_versioning.yml index e0f179b..f22a6d9 100644 --- a/.github/workflows/automated_versioning.yml +++ b/.github/workflows/automated_versioning.yml @@ -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: | @@ -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: | @@ -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: | @@ -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 diff --git a/Program.cs b/Program.cs index ffef8f2..9575829 100644 --- a/Program.cs +++ b/Program.cs @@ -4,6 +4,6 @@ class Program { static void Main(string[] args) { - Console.WriteLine("Testing out version bump"); + Console.WriteLine("Testing out new version bump"); } } \ No newline at end of file diff --git a/version.txt b/version.txt index 5a5831a..d169b2f 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -0.0.7 +0.0.8