From 05bde710bdaace4d7cc4726316d429a25fe2ee3c Mon Sep 17 00:00:00 2001 From: Reingold Shekhtel <13565058+raikbitters@users.noreply.github.com> Date: Tue, 10 Sep 2024 15:41:15 +0200 Subject: [PATCH] Update dockerhub-release.yaml --- .github/workflows/dockerhub-release.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dockerhub-release.yaml b/.github/workflows/dockerhub-release.yaml index f874986a45..5eaf6af090 100644 --- a/.github/workflows/dockerhub-release.yaml +++ b/.github/workflows/dockerhub-release.yaml @@ -17,7 +17,7 @@ jobs: name: Retag and push image runs-on: ubuntu-latest environment: rc - if: github.event.pull_request.base.ref == 'master' || github.event.pull_request.base.ref == 'main' + if: github.event.review.state == 'approved' && (github.event.pull_request.base.ref == 'master' || github.event.pull_request.base.ref == 'main') steps: - name: Checkout uses: actions/checkout@v3 @@ -45,8 +45,7 @@ jobs: - name: Create variables id: vars run: | - echo "tag=$(echo '${{ github.event.pull_request.title }}' | sed -nE 's/.*([0-9]+\.[0-9]+\.[0-9]+).*/\1/p')" >> $GITHUB_OUTPUT - + echo "tag=$(echo '${{ github.event.pull_request.title }}' | sed -nE 's/.*([0-9]+\.[0-9]+\.[0-9]+\S*)/\1/p')" >> $GITHUB_OUTPUT - name: Set up QEMU uses: docker/setup-qemu-action@v2