Skip to content

Commit

Permalink
Fix commit commands when nothing to commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyberboss committed Aug 15, 2024
1 parent e8c05d4 commit f0822bc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/periodic_cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,12 @@ jobs:
git config user.name "tgstation-server-ci[bot]"
git config user.email "161980869+tgstation-server-ci[bot]@users.noreply.github.com"
- name: Git Stage
run: git add .

- name: Git Commit
run: |
git add .
git commit -m 'Cleanup Telemetry Entries' -m 'Job: ${{ github.run_id }}'
git diff-index --quiet HEAD || git commit -m 'Cleanup Telemetry Entries' -m 'Job: ${{ github.run_id }}'
- name: Git Push
run: |
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/tgs_deployments_telemetry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,12 @@ jobs:
git config user.name "tgstation-server-ci[bot]"
git config user.email "161980869+tgstation-server-ci[bot]@users.noreply.github.com"
- name: Git Stage
run: git add .

- name: Git Commit
run: |
git add .
git commit -m 'Update Telemetry Entry' -m 'Job: ${{ github.run_id }}'
git diff-index --quiet HEAD || git commit -m 'Update Telemetry Entry' -m 'Job: ${{ github.run_id }}'
- name: Git Push
run: |
Expand Down

0 comments on commit f0822bc

Please sign in to comment.