0
0
Fork 0
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:
Tonye Jack 2021-01-30 21:55:16 -05:00
parent a1670156f3
commit f7816044ea

View file

@ -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;