Skip to content
Merged
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
10 changes: 9 additions & 1 deletion .github/workflows/maven-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,12 @@ jobs:
INPUTS_RELEASE_COMMAND: ${{ inputs.release_command }}

- name: Push all the git commits and tags back to the repository
run: git push && git push --tags
run: |
# Construct the authenticated URL
# format: https://<token>@github.com/<owner>/<repo>.git
REMOTE="https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}.git"

git push "${REMOTE}" && git push "${REMOTE}" --tags
env:
# Use the standard GITHUB_TOKEN or a Custom PAT if pushing to other repos
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8 changes: 7 additions & 1 deletion .github/workflows/maven-set-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,14 @@ jobs:

- name: Push all the git commits and tags back to the repository
run: |
# Construct the authenticated URL
# format: https://<token>@github.com/<owner>/<repo>.git
REMOTE="https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}.git"

git add -A
git commit -m "chore: Bump version to: ${INPUTS_NEW_VERSION}"
git push
git push "${REMOTE}"
env:
INPUTS_NEW_VERSION: ${{ inputs.new_version }}
# Use the standard GITHUB_TOKEN or a Custom PAT if pushing to other repos
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}