mirror of
https://github.com/tj-actions/pg-dump.git
synced 2024-12-20 01:18:49 +00:00
Updated action.
This commit is contained in:
parent
a1670156f3
commit
f7816044ea
1 changed files with 3 additions and 13 deletions
16
.github/workflows/test.yml
vendored
16
.github/workflows/test.yml
vendored
|
@ -14,7 +14,7 @@ jobs:
|
|||
name: Test postgres-restore
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:9.6
|
||||
image: postgres:9.6.20
|
||||
env:
|
||||
POSTGRES_USER: test_user
|
||||
POSTGRES_PASSWORD: test_user_password
|
||||
|
@ -39,17 +39,7 @@ jobs:
|
|||
with:
|
||||
files: backups/backup.sql
|
||||
|
||||
- name: Commit changes to backup file.
|
||||
- name: Raise error
|
||||
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]"
|
||||
git add backups/backup.sql
|
||||
git commit -m "Auto update backup.sql."
|
||||
|
||||
- name: Push changes
|
||||
if: steps.changed_backup.outputs.files_changed == 'true'
|
||||
uses: ad-m/github-push-action@master
|
||||
with:
|
||||
github_token: ${{ secrets.PAT_TOKEN }}
|
||||
branch: ${{ github.head_ref }}
|
||||
exit 1;
|
||||
|
|
Loading…
Add table
Reference in a new issue