Highlights in v1.0.2
- Stable
create, reset, and delete flows
- Safer behavior for concurrent operations targeting the same preview DB
- Lock wait timeout behavior documented and enforced
- Flexible cloning strategy (
auto, local, docker)
- Better Docker + SSL environment compatibility in clone paths
- Improved app-user grant behavior for preview DB access
- README improvements, including clear
with field explanations
Compatibility
- Validated with PostgreSQL versions 13 to 18
- Unit and integration tests included in CI
Quick usage examples
Create
- uses: Eiley2/postgres-branching/create@v1
with:
branch_name: pr_${{ github.event.number }}
parent_branch: app_main
pg_host: ${{ secrets.PGHOST }}
pg_port: ${{ secrets.PGPORT }}
pg_user: ${{ secrets.PGUSER }}
pg_password: ${{ secrets.PGPASSWORD }}
Reset
- uses: Eiley2/postgres-branching/reset@v1
with:
branch_name: pr_${{ github.event.number }}
parent_branch: app_main
pg_host: ${{ secrets.PGHOST }}
pg_port: ${{ secrets.PGPORT }}
pg_user: ${{ secrets.PGUSER }}
pg_password: ${{ secrets.PGPASSWORD }}
Delete
- uses: Eiley2/postgres-branching/delete@v1
with:
branch_name: pr_${{ github.event.number }}
pg_host: ${{ secrets.PGHOST }}
pg_port: ${{ secrets.PGPORT }}
pg_user: ${{ secrets.PGUSER }}
pg_password: ${{ secrets.PGPASSWORD }}
Tags
v1.0.2 published
v1 and latest updated to point to v1.0.2