From 2cefd424dff671016e29eff87b27e6fe317518ca Mon Sep 17 00:00:00 2001 From: Sascha Nowak Date: Fri, 12 Jul 2024 07:17:11 +0200 Subject: [PATCH] fix: version extract of postgres --- .github/workflows/postgres.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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'