-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cb5bc5b
commit 1800eff
Showing
1 changed file
with
19 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 |