diff --git a/.github/workflows/complain.yml b/.github/workflows/complain.yml index 65064649..dd7ebb00 100644 --- a/.github/workflows/complain.yml +++ b/.github/workflows/complain.yml @@ -27,9 +27,9 @@ jobs: SLACK_MESSAGE: new-version:${{ inputs.projects }} (${{ inputs.platform }}) ${{ steps.status.outputs.status }} SLACK_COLOR: ${{ steps.status.outputs.status }} - uses: actions/checkout@v3 - if: ${{ github.base_ref == 'main' }} + if: env.GITHUB_REF == 'refs/heads/main' - uses: JasonEtco/create-an-issue@v2 - if: ${{ github.base_ref == 'main' }} + if: env.GITHUB_REF == 'refs/heads/main' with: filename: ./.github/NEW_VERSION_ISSUE_TEMPLATE.md env: