Skip to content

Commit fb2337d

Browse files
committed
Handling the case where there are no changes when removing a test instance. This doens't happen much, but it's super annoying to get spam when you're working on a bunch of things.
1 parent ba63e95 commit fb2337d

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

.github/workflows/remove-test.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,5 @@ jobs:
6262
working-directory: admin-interface-test
6363
run: |
6464
git add .
65-
git commit -m "Remove deployment ${PR_NUMBER} due to PR closure" || true
66-
67-
- name: push updates
68-
working-directory: admin-interface-test
69-
run: |
70-
git push origin gh-pages
65+
# Commit and push, or just say true since the commit fails if nothing has changed
66+
(git commit -m "Remove deployment ${PR_NUMBER} due to PR closure" && git push origin gh-pages --force) || true

0 commit comments

Comments
 (0)