From e4d75f29ba5578b5600f7ca45b4cf3498bc3b9f8 Mon Sep 17 00:00:00 2001 From: Igor Date: Tue, 20 Aug 2024 12:04:51 +0200 Subject: [PATCH] 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> --- .github/workflows/pr-announce.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pr-announce.yml b/.github/workflows/pr-announce.yml index a2d7cd9c1c3f..6953ba98d567 100644 --- a/.github/workflows/pr-announce.yml +++ b/.github/workflows/pr-announce.yml @@ -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