From abddbb5f44385a003017c79a60f680aa972adddd Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Sun, 14 Mar 2021 15:26:48 -0400 Subject: [PATCH 1/5] Update test.yml --- .github/workflows/test.yml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1ce138f..7880835 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -52,15 +52,10 @@ jobs: git config --local user.name "github-actions[bot]" git add backups/backup.sql git commit -m "Auto updated backup.sql." - - - name: Create Pull Request - uses: peter-evans/create-pull-request@v3 + + - name: Push changes if: failure() + uses: ad-m/github-push-action@master with: - base: "main" - title: "[Backup] Updated test database backup" - 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 }} + github_token: ${{ secrets.PAT_TOKEN }} + branch: ${{ github.head_ref }} From 9cc5661d4504b4a46fc2e4eecb5b38c38e7ae516 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 14 Mar 2021 19:27:34 +0000 Subject: [PATCH 2/5] Auto updated backup.sql. --- backups/backup.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backups/backup.sql b/backups/backup.sql index fcbaae9..28f32f5 100644 --- a/backups/backup.sql +++ b/backups/backup.sql @@ -3,7 +3,7 @@ -- -- Dumped from database version 9.6.20 --- Dumped by pg_dump version 13.1 (Ubuntu 13.1-1.pgdg20.04+1) +-- Dumped by pg_dump version 13.2 (Ubuntu 13.2-1.pgdg20.04+1) SET statement_timeout = 0; SET lock_timeout = 0; From e931bc4a8ad3736bcad5d3425eb0f87ae947ce79 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Sun, 14 Mar 2021 15:28:50 -0400 Subject: [PATCH 3/5] Update test.yml --- .github/workflows/test.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7880835..ad293a0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -27,7 +27,9 @@ jobs: steps: - name: Checkout 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 uses: ./ with: From dbe89c3cee3dec328dc415e390c190424b92dc39 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Sun, 14 Mar 2021 15:30:24 -0400 Subject: [PATCH 4/5] Update backup.sql --- backups/backup.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backups/backup.sql b/backups/backup.sql index 28f32f5..fcbaae9 100644 --- a/backups/backup.sql +++ b/backups/backup.sql @@ -3,7 +3,7 @@ -- -- Dumped from database version 9.6.20 --- Dumped by pg_dump version 13.2 (Ubuntu 13.2-1.pgdg20.04+1) +-- Dumped by pg_dump version 13.1 (Ubuntu 13.1-1.pgdg20.04+1) SET statement_timeout = 0; SET lock_timeout = 0; From 2964b52e9469eab293f3c3821df2068627be233b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 14 Mar 2021 19:31:09 +0000 Subject: [PATCH 5/5] Auto updated backup.sql. --- backups/backup.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backups/backup.sql b/backups/backup.sql index fcbaae9..28f32f5 100644 --- a/backups/backup.sql +++ b/backups/backup.sql @@ -3,7 +3,7 @@ -- -- Dumped from database version 9.6.20 --- Dumped by pg_dump version 13.1 (Ubuntu 13.1-1.pgdg20.04+1) +-- Dumped by pg_dump version 13.2 (Ubuntu 13.2-1.pgdg20.04+1) SET statement_timeout = 0; SET lock_timeout = 0;