RFC: move github org to uxlfoundation #14
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Slack PR Notification | |
on: | |
# pull request target uses base and has access to secrets | |
pull_request_target: | |
types: [opened, reopened] | |
jobs: | |
notify: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check PR title | |
id: check | |
run: | | |
if [[ "${{ github.event.pull_request.title }}" == *"RFC"* ]]; then | |
echo "NOTIFY_SLACK=true" >> $GITHUB_ENV | |
fi | |
- name: Notify Slack | |
if: env.NOTIFY_SLACK == 'true' | |
uses: slackapi/[email protected] | |
with: | |
channel-id: "rc-test" | |
slack-message: "${{ github.actor }} opened a new RFC: ${{ github.event.pull_request.title }}" | |
env: | |
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} |