diff --git a/.github/workflows/slack.yaml b/.github/workflows/slack.yaml index d31f4b3..0f6d044 100644 --- a/.github/workflows/slack.yaml +++ b/.github/workflows/slack.yaml @@ -11,15 +11,13 @@ jobs: id: check run: | if [[ "${{ github.event.pull_request.title }}" == *"RFC"* ]]; then - echo "::set-output name=notify::true" - else - echo "::set-output name=notify::false" + echo "NOTIFY_SLACK=true" >> $GITHUB_ENV fi - name: Notify Slack - if: steps.check.outputs.notify == 'true' + if: env.NOTIFY_SLACK == 'true' uses: slackapi/slack-github-action@v1.25.0 with: + channel-id: "rc-test" slack-message: "${{ github.actor }} opened a new RFC: ${{ github.event.pull_request.title }}" - slack-channel: '#wg-spec' env: SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}