diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 93fb968..4f47c6f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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;