mirror of
https://github.com/tj-actions/pg-dump.git
synced 2024-12-20 01:18:49 +00:00
Merge branch 'main' into chore/update-test-db-backup
This commit is contained in:
commit
534af5397a
1 changed files with 8 additions and 11 deletions
17
.github/workflows/test.yml
vendored
17
.github/workflows/test.yml
vendored
|
@ -27,7 +27,9 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
|
||||||
|
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
|
||||||
- name: Run pg_dump
|
- name: Run pg_dump
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
|
@ -53,14 +55,9 @@ jobs:
|
||||||
git add backups/backup.sql
|
git add backups/backup.sql
|
||||||
git commit -m "Auto updated backup.sql."
|
git commit -m "Auto updated backup.sql."
|
||||||
|
|
||||||
- name: Create Pull Request
|
- name: Push changes
|
||||||
uses: peter-evans/create-pull-request@v3
|
|
||||||
if: failure()
|
if: failure()
|
||||||
|
uses: ad-m/github-push-action@master
|
||||||
with:
|
with:
|
||||||
base: "main"
|
github_token: ${{ secrets.PAT_TOKEN }}
|
||||||
title: "[Backup] Updated test database backup"
|
branch: ${{ github.head_ref }}
|
||||||
branch: "chore/update-test-db-backup"
|
|
||||||
commit-message: "Modified test database backup using latest migration changes."
|
|
||||||
body: "Updated test database backup."
|
|
||||||
reviewers: "jackton1"
|
|
||||||
token: ${{ secrets.PAT_TOKEN }}
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue