Skip to content

[ci] Use shared maintainer check for discord notifications #5

[ci] Use shared maintainer check for discord notifications

[ci] Use shared maintainer check for discord notifications #5

name: (Compiler) Discord Notify
on:
pull_request:
paths:
- compiler/**
- .github/workflows/compiler_**.yml
jobs:
check_maintainer:
uses: facebook/react/.github/workflows/shared_check_maintainer.yml@main

Check failure on line 11 in .github/workflows/compiler_discord_notify.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/compiler_discord_notify.yml

Invalid workflow file

error parsing called workflow ".github/workflows/compiler_discord_notify.yml" -> "facebook/react/.github/workflows/shared_check_maintainer.yml@main" : failed to fetch workflow: workflow was not found.
notify:
if: ${{ needs.check_maintainer.outputs.is_core_team }}
needs: check_maintainer
runs-on: ubuntu-latest
steps:
- name: Discord Webhook Action
uses: tsickert/[email protected]
with:
webhook-url: ${{ secrets.COMPILER_DISCORD_WEBHOOK_URL }}
embed-author-name: ${{ github.event.pull_request.user.login }}
embed-author-url: ${{ github.event.pull_request.user.html_url }}
embed-author-icon-url: ${{ github.event.pull_request.user.avatar_url }}
embed-title: '#${{ github.event.number }} (+${{github.event.pull_request.additions}} -${{github.event.pull_request.deletions}}): ${{ github.event.pull_request.title }}'
embed-description: ${{ github.event.pull_request.body }}
embed-url: ${{ github.event.pull_request.html_url }}