diff --git a/.github/workflows/postgres.yml b/.github/workflows/postgres.yml index 24089d2..a38a570 100644 --- a/.github/workflows/postgres.yml +++ b/.github/workflows/postgres.yml @@ -12,11 +12,13 @@ on: - main paths: - postgres/** + - .github/workflows/postgres.yml pull_request: branches: - main paths: - postgres/** + - .github/workflows/postgres.yml workflow_dispatch: inputs: {} @@ -46,7 +48,7 @@ jobs: - name: Read version from Dockerfile id: docker - run: echo "version=$(./extract-version.sh ./postgres/Dockerfile)" >> $GITHUB_OUTPUT + run: echo "version=$(./extract-version.sh ./postgres/${{ matrix.image.file || 'Dockerfile' }})" >> $GITHUB_OUTPUT - name: Login to GHCR if: github.event_name != 'pull_request'