From bb8bce758e31336c322272a29535624f4a64a618 Mon Sep 17 00:00:00 2001 From: Leonard Jonathan Oh Date: Tue, 7 Feb 2023 01:11:40 +0000 Subject: [PATCH] Fix (ci): Run `update-dockerhub-description` job only on `master` --- .github/workflows/ci-master-pr.yml | 2 +- generate/templates/.github/workflows/ci-master-pr.yml.ps1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-master-pr.yml b/.github/workflows/ci-master-pr.yml index 0826cd1..410dda1 100644 --- a/.github/workflows/ci-master-pr.yml +++ b/.github/workflows/ci-master-pr.yml @@ -1559,7 +1559,7 @@ jobs: update-dockerhub-description: needs: [build-v3-0-8-alpine-3-13, build-v3-0-7-alpine-3-12, build-v3-0-6-alpine-3-11, build-v3-0-6-alpine-3-10, build-v3-0-5-alpine-3-9, build-v3-0-4-alpine-3-8, build-v3-0-3-alpine-3-7, build-v3-0-1-alpine-3-6, build-v3-0-1-alpine-3-5, build-v3-0-1-alpine-3-4, build-v3-0-1-alpine-3-3] - if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') + if: github.ref == 'refs/heads/master' runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 diff --git a/generate/templates/.github/workflows/ci-master-pr.yml.ps1 b/generate/templates/.github/workflows/ci-master-pr.yml.ps1 index 36ab7f1..320a821 100644 --- a/generate/templates/.github/workflows/ci-master-pr.yml.ps1 +++ b/generate/templates/.github/workflows/ci-master-pr.yml.ps1 @@ -226,7 +226,7 @@ if ( $_['tag_as_latest'] ) { update-dockerhub-description: needs: [$( $local:WORKFLOW_JOB_NAMES -join ', ' )] - if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') + if: github.ref == 'refs/heads/master' runs-on: ubuntu-latest steps: - uses: actions/checkout@v3