Skip to content

[CI] use sklearnex azure pipelines template for sklearnex CI step #92

[CI] use sklearnex azure pipelines template for sklearnex CI step

[CI] use sklearnex azure pipelines template for sklearnex CI step #92

name: Slack PR Notification
on:
# use pull_request_target to run on PRs from forks and have access to secrets
pull_request_target:
types: [labeled]
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
channel: "onedal"
permissions:
pull-requests: read
jobs:
rfc:
name: RFC Notification
runs-on: ubuntu-latest
# Trigger when labeling a PR with "RFC"
if: |
github.event.action == 'labeled' &&
contains(toJson(github.event.pull_request.labels.*.name), '"RFC"')
steps:
- name: Notify Slack
uses: slackapi/slack-github-action@37ebaef184d7626c5f204ab8d3baff4262dd30f0 # v1.27.0
with:
channel-id: ${{ env.channel }}
slack-message: "${{ github.actor }} posted a RFC: ${{ github.event.pull_request.title }}. URL: ${{ github.event.pull_request.html_url }}"