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:
parent
dc9478a8c2
commit
d9e5a3fe4f
1 changed files with 2 additions and 7 deletions
9
.github/workflows/test.yml
vendored
9
.github/workflows/test.yml
vendored
|
@ -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 }}
|
||||
|
|
Loading…
Add table
Reference in a new issue