Skip to content

chore: update shards #59

chore: update shards

chore: update shards #59

name: Update Postgres Version Branches
on:
push:
branches:
- master
jobs:
update-postgres-versions:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0 # Need full history for merging
- name: Set up Git
run: |
git config user.name "GitHub Actions"
git config user.email "github-actions@github.com"
- name: Merge master into postgresql-16
run: |
git checkout postgresql-16
git merge -X theirs origin/master
sed -i 's/postgresql[0-9]*-client/postgresql16-client/g' Dockerfile
git commit -am "Ensure postgresql16-client is maintained"
git push origin postgresql-16
- name: Merge master into postgresql-17
run: |
git checkout postgresql-17
git merge -X theirs origin/master
sed -i 's/postgresql[0-9]*-client/postgresql17-client/g' Dockerfile
git commit -am "Ensure postgresql17-client is maintained"
git push origin postgresql-17