Skip to content

Commit

Permalink
Discord announcement: push only when label "Needs review" is set (#7075)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
igorpecovnik and ColorfulRhino committed Aug 20, 2024
1 parent 100a004 commit e4d75f2
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/pr-announce.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit e4d75f2

Please sign in to comment.