Skip to content

Commit 4ea1999

Browse files
committed
Add OnPrChanged
1 parent 70f08d7 commit 4ea1999

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/OnPRChanged.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#
2+
# Workflows, like this one, that are triggered by PRs submitted
3+
# from forked repositories are severly limited in what they can do
4+
# for security reasons. For instance, they can't add or remove
5+
# labels or comments even on the PR that triggered them. Since
6+
# we need to both of those things, GitHub recommends creating a
7+
# separate workflow that does those tasks that's triggered when
8+
# this PR workflow starts or finishes. Since that workflow isn't
9+
# being run in the context of a forked repo, it has all the
10+
# privileges needed to add and remove labels and comments. The
11+
# accompanying OnPRStateChangedPriv workflow does just that.
12+
13+
name: PRChanged
14+
# WARNING! The run name MUST start with "PR <pr_number>".
15+
# The accompanying privleged workflow parses this to find
16+
# the PR number. It's the only reliable way it can get it.
17+
run-name: "PR ${{ github.event.number }} Changed by ${{ github.actor }}"
18+
on:
19+
pull_request:
20+
types: [opened, reopened, synchronize]
21+
22+
concurrency:
23+
group: check-${{ github.event.number }}
24+
cancel-in-progress: true
25+
26+
jobs:
27+
Setup:
28+
runs-on: ubuntu-latest
29+
steps:
30+
- name: DumpEnvironment
31+
uses: asterisk/asterisk-ci-actions/DumpEnvironmentAction@main
32+
with:
33+
save_output: true
34+
artifact_id: DumpEnvironment-Setup
35+

0 commit comments

Comments
 (0)