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