File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed
Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 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+
You can’t perform that action at this time.
0 commit comments