Discord announcement: push only when label "Needs review" is set (#7075)

* Discord annoucement: push only when label "Needs review" is set

* Change to label triggering

* actions: Add run-name to `pr-announce` workflow

---------

Co-authored-by: ColorfulRhino <131405023+ColorfulRhino@users.noreply.github.com>
This commit is contained in:
Igor
2024-08-20 12:04:51 +02:00
committed by GitHub
parent 100a004aa5
commit e4d75f29ba

View File

@@ -1,13 +1,17 @@
name: "Announce PR on Discord for review"
run-name: 'Announce PR #${{ github.event.pull_request.number }} on Discord for review'
on:
pull_request:
types: [ opened ]
branches: [ main ]
types: [ labeled ]
jobs:
build:
name: "Announce PR on Discord"
Announce:
permissions:
pull-requests: read
runs-on: ubuntu-latest
if: github.repository == 'armbian/build'
if: ${{ github.repository == 'armbian/build' && github.event.label.id == '6210849975' }}
steps:
- name: Get repo
uses: actions/checkout@v4