mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
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:
14
.github/workflows/pr-announce.yml
vendored
14
.github/workflows/pr-announce.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user