0
0
Fork 0
mirror of https://github.com/tj-actions/pg-dump.git synced 2024-12-20 01:18:49 +00:00

Update test.yml

This commit is contained in:
Tonye Jack 2023-09-07 11:35:41 -06:00 committed by GitHub
parent dc9478a8c2
commit d9e5a3fe4f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,14 +41,9 @@ jobs:
uses: tj-actions/verify-changed-files@v16
with:
files: backups/backup.sql
- name: Raise error
if: steps.changed_backup.outputs.files_changed == 'true'
run: |
exit 1;
- name: Commit changes to backup file.
if: failure()
if: steps.changed_backup.outputs.files_changed == 'true'
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
@ -56,7 +51,7 @@ jobs:
git commit -m "Auto updated backup.sql."
- name: Push changes
if: failure()
if: steps.changed_backup.outputs.files_changed == 'true'
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.PAT_TOKEN }}