-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: amber <> Co-authored-by: nshm <[email protected]>
- Loading branch information
Showing
2 changed files
with
7 additions
and
16 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 |
---|---|---|
|
@@ -4,6 +4,7 @@ on: | |
push: | ||
branches: | ||
- main | ||
- hot-fix-build-image | ||
paths: | ||
- services/** | ||
|
||
|
@@ -91,18 +92,8 @@ jobs: | |
- name: Commit the changes | ||
run: | | ||
# Configure Git user details | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "nshm" | ||
# Check out the branch that triggered the workflow | ||
git fetch origin | ||
git checkout $GITHUB_REF_NAME | ||
# Pull the latest changes from the remote branch, allowing rebasing to keep history clean | ||
git pull origin $GITHUB_REF_NAME --rebase || true | ||
# Commit any changes (including uncommitted changes) and push | ||
git add -A | ||
git commit -m "chore: auto-commit and updated image tags for services: ${{ matrix.service }}" || echo "No changes to commit" | ||
git push origin $GITHUB_REF_NAME || echo "Nothing to push" | ||
git fetch origin | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "nshm" | ||
git commit -am "chore: updated image tags for services: ${{ matrix.service }}" | ||
git push origin $GITHUB_REF_NAME --force |
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