From f8521e78e01141c483b59501157a36b6537d60ce Mon Sep 17 00:00:00 2001 From: Minutis Date: Tue, 2 Jan 2024 21:21:04 +0200 Subject: [PATCH] Use head ref to fetch proper branch --- .github/workflows/publish-registry-pr.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-registry-pr.yml b/.github/workflows/publish-registry-pr.yml index d6f6a892..d8a22e9f 100644 --- a/.github/workflows/publish-registry-pr.yml +++ b/.github/workflows/publish-registry-pr.yml @@ -30,12 +30,12 @@ jobs: build-args: | SPARK_VERSION=${{ matrix.spark_version }} HADOOP_VERSION=${{ matrix.hadoop_version }} - tags: ghcr.io/exacaster/lighter:${{ github.event.release.tag_name }}-spark${{ matrix.spark_version }}-${{ github.ref_name }} + tags: ghcr.io/exacaster/lighter:${{ github.head_ref }}-spark${{ matrix.spark_version }} - name: Comment PR with Docker Image URL uses: peter-evans/create-or-update-comment@v3 with: issue-number: ${{ github.event.issue.number }} body: | Docker image has been built and pushed. - Image URL: ghcr.io/exacaster/lighter:${{ github.event.release.tag_name }}-spark${{ matrix.spark_version }}-${{ github.ref_name }} + Image URL: ghcr.io/exacaster/lighter:${{ github.head_ref }}-spark${{ matrix.spark_version }} token: ${{ github.token }}