Skip to content

Commit

Permalink
fix: try using normal git commits
Browse files Browse the repository at this point in the history
  • Loading branch information
DerTiedemann committed Sep 3, 2024
1 parent cb5bc5b commit 1800eff
Showing 1 changed file with 19 additions and 22 deletions.
41 changes: 19 additions & 22 deletions .github/workflows/bump-version-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,27 +54,25 @@ jobs:
ref: ${{ github.event.repository.default_branch }}
persist-credentials: false # required for pushing to protected branch later

- name: Setup Git
run: |
git config --global user.name "${{ secrets.github-username }}"
git config --global user.email "${{ secrets.github-email }}"
- name: Remove snapshot suffix
id: bump-version
uses: bakdata/ci-templates/actions/bump-version@feat/new-bumpversion
with:
release-type: "release"
working-directory: ${{ inputs.working-directory }}

- name: Commit and push changes including .bumpversion.cfg file
uses: bakdata/ci-templates/actions/[email protected]
with:
ref: ${{ github.event.repository.default_branch }}
commit-message: "Bump version ${{ steps.bump-version.outputs.old-version }} → ${{ steps.bump-version.outputs.release-version }}"
github-username: ${{ secrets.github-username }}
github-email: ${{ secrets.github-email }}
github-token: ${{ secrets.github-token }}

- name: Check out repository
uses: bakdata/ci-templates/actions/[email protected]
with:
ref: ${{ github.event.repository.default_branch }}
persist-credentials: false # required for pushing to protected branch later
- name: Commit .bumpversion.cfg file without snapshot
run: |
git add .bumpversion.cfg
git commit -m "Bump version ${{ steps.bump-version.outputs.old-version }} → ${{ steps.bump-version.outputs.release-version }}"
git fetch origin
git rebase --strategy-option=theirs origin/main
git push --verbose
- name: Create changelog
id: build-changelog
Expand All @@ -101,11 +99,10 @@ jobs:
release-type: ${{ inputs.release-type }}
working-directory: ${{ inputs.working-directory }}

- name: Commit and push changes including .bumpversion.cfg file
uses: bakdata/ci-templates/actions/[email protected]
with:
ref: ${{ github.event.repository.default_branch }}
commit-message: "Bump version ${{ steps.bump-version-snapshot.outputs.release-version }} → SNAPSHOT"
github-username: ${{ secrets.github-username }}
github-email: ${{ secrets.github-email }}
github-token: ${{ secrets.github-token }}
- name: Commit .bumpversion.cfg file new version and snapshot
run: |
git add .bumpversion.cfg
git commit -m "Bump version ${{ steps.bump-version-snapshot.outputs.old-version }} → ${{ steps.bump-version-snapshot.outputs.release-version }}"
git fetch origin
git rebase --strategy-option=theirs origin/main
git push --verbose

0 comments on commit 1800eff

Please sign in to comment.