From a6087c1bc4dc8be255d10860d8169cc7432571e4 Mon Sep 17 00:00:00 2001 From: Leonard Jonathan Oh Date: Tue, 7 Feb 2023 01:11:44 +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 07028f7..7329b8a 100644 --- a/.github/workflows/ci-master-pr.yml +++ b/.github/workflows/ci-master-pr.yml @@ -199,7 +199,7 @@ jobs: update-dockerhub-description: needs: [build-v1-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