From 842403355ade5618f681272d93b5c0f4d2934328 Mon Sep 17 00:00:00 2001 From: Robert Cohn Date: Tue, 16 Apr 2024 09:20:32 -0400 Subject: [PATCH] update (#8) --- .github/workflows/slack.yaml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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 }}