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