Skip to content

Commit

Permalink
Merge pull request #53 from OCHA-DAP/HAPI-230-bugfix-export-gha
Browse files Browse the repository at this point in the history
HAPI-230 push to db-export branch
  • Loading branch information
turnerm authored Oct 19, 2023
2 parents 4c67813 + f894597 commit 66882fc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/db_export.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}

- name: Set up Python
uses: actions/setup-python@v4
Expand All @@ -50,11 +48,14 @@ jobs:

- name: Dump PostgreSQL DB
run: |
mkdir database
docker exec -t postgres-container pg_dump -U postgres -Fc hapi -f hapi_db.pg_restore
docker cp postgres-container:/hapi_db.pg_restore database/hapi_db.pg_restore
- name: Commit updated DB export
uses: stefanzweifel/git-auto-commit-action@v5
uses: JamesIves/github-pages-deploy-action@v4
with:
file_pattern: database/hapi_db.pg_restore
branch: db-export
folder: database
target-folder: database
commit_message: automatic - DB export updated
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [0.5.3] - 2023-10-19

### Fixed

- DB export GitHub action pushes to branch db-export

## [0.5.2] - 2023-10-19

### Fixed
Expand Down
Binary file removed database/hapi_db.pg_restore
Binary file not shown.

0 comments on commit 66882fc

Please sign in to comment.