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 August
parent de6ed6d8dc
commit 3497c83452

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: on:
pull_request: pull_request:
types: [ opened ] types: [ labeled ]
branches: [ main ]
jobs: jobs:
build: Announce:
name: "Announce PR on Discord" permissions:
pull-requests: read
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.repository == 'armbian/build' if: ${{ github.repository == 'armbian/build' && github.event.label.id == '6210849975' }}
steps: steps:
- name: Get repo - name: Get repo
uses: actions/checkout@v4 uses: actions/checkout@v4