Skip to content

Commit 6231b44

Browse files
authored
Add git pull --rebase before pushing changes
Add git pull --rebase before pushing changes to ensure the branch is up to date.
1 parent fe8cd4c commit 6231b44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/update-images.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,6 @@ jobs:
337337
SUBMITTER: ${{ github.event.head_commit.author.email }}
338338
run: |
339339
# git add returns success for files that exist and haven't been modified
340-
git pull --rebase
341340
git add kctf-operator/resources/constants.go
342341
git add dist/resources/install.yaml
343342
git add kctf-operator/config/crd/bases/kctf.dev_challenges.yaml
@@ -353,5 +352,6 @@ jobs:
353352
git config user.email "$SUBMITTER"
354353
git config user.name "GitHub Action"
355354
if git commit -m "Automated commit: update images."; then
355+
git pull --rebase
356356
git push
357357
fi

0 commit comments

Comments
 (0)