From a99251e35b3cc2e4f5f326319de75c35893d5aea Mon Sep 17 00:00:00 2001 From: bastienqb Date: Sun, 18 Sep 2022 22:19:44 +0800 Subject: [PATCH] fix(learning): :bug: put if at the correct place --- .github/workflows/on-release-merge.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/on-release-merge.yml b/.github/workflows/on-release-merge.yml index 5d68d38..302c7fd 100644 --- a/.github/workflows/on-release-merge.yml +++ b/.github/workflows/on-release-merge.yml @@ -7,9 +7,9 @@ on: name: release-please jobs: say-hi-when-release: + if: ${{ github.event.pull_request.merged }} && endsWith(${{ github.head_ref}}, "release-please-action") runs-on: ubuntu-latest steps: - name: Say hello - if: ${{ github.event.pull_request.merged }} && endsWith(${{ github.head_ref}}, "release-please-action") run: echo "git head ref is ${{ github.head_ref}} and git base ref is {{ github.base_ref }}"