diff --git a/.github/workflows/complain.yml b/.github/workflows/complain.yml index eb15745a..c5f79f42 100644 --- a/.github/workflows/complain.yml +++ b/.github/workflows/complain.yml @@ -27,11 +27,11 @@ jobs: SLACK_MESSAGE: new-version:${{ inputs.projects }} (${{ inputs.platform }}) ${{ steps.status.outputs.status }} SLACK_COLOR: ${{ steps.status.outputs.status }} - run: env | grep ^GITHUB - - run: echo "${{ env.GITHUB_REF_NAME == 'main'}}" + - run: echo "${{ github.ref_name == 'main'}}" - uses: actions/checkout@v3 - if: ${{ env.GITHUB_REF_NAME == 'main'}} + if: github.ref_name == 'main' - uses: JasonEtco/create-an-issue@v2 - if: ${{ env.GITHUB_REF_NAME == 'main'}} + if: github.ref_name == 'main' with: filename: ./.github/NEW_VERSION_ISSUE_TEMPLATE.md env: