Skip to content

Commit 82a1875

Browse files
committed
.github: fixup 2
1 parent 8e6560c commit 82a1875

File tree

2 files changed

+58
-3
lines changed

2 files changed

+58
-3
lines changed

Diff for: .github/workflows/AsteriskPRChanged.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ permissions:
2020
# discussions: read|write|none
2121
# packages: read|write|none
2222
# pages: read|write|none
23-
pull-requests: read
23+
pull-requests: write
2424
# repository-projects: read|write|none
2525
# security-events: read|write|none
2626
statuses: read
@@ -41,8 +41,12 @@ env:
4141
ACTIONS_BRANCH: main
4242

4343
jobs:
44-
#
45-
Setup:
44+
PRChanged2:
45+
name: "run-check"
46+
uses: ./.github/workflows/AsteriskPRChanged2.yml
47+
48+
Cleanup:
49+
needs: [ PRChanged2 ]
4650
runs-on: ubuntu-latest
4751
steps:
4852
- id: setup

Diff for: .github/workflows/AsteriskPRChanged2.yml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: PRChangedCalled2
2+
run-name: "${{ github.workflow }}-${{ github.event.label.name }}-${{ github.event.number }}"
3+
on:
4+
workflow_call:
5+
inputs:
6+
actions_ref:
7+
description: 'JSON object reference to the actions: { "owner": "asterisk", "repo": "asterisk-ci-actions", "branch": "main" }'
8+
type: string
9+
required: false
10+
default: '{ "owner": "asterisk", "repo": "asterisk-ci-actions", "branch": "main" }'
11+
12+
permissions:
13+
actions: read
14+
# attestations: read|write|none
15+
checks: read
16+
contents: read
17+
# deployments: read|write|none
18+
# id-token: write|none
19+
issues: read
20+
# discussions: read|write|none
21+
# packages: read|write|none
22+
# pages: read|write|none
23+
pull-requests: read
24+
# repository-projects: read|write|none
25+
# security-events: read|write|none
26+
statuses: read
27+
28+
env:
29+
REPO: ${{ github.repository }}
30+
REPO_DIR: ${{ github.workspace }}/${{ github.event.repository.name }}
31+
REPO_ORG: ${{ github.event.repository.owner.login }}
32+
PR_NUMBER: ${{ github.event.number }}
33+
BASE_BRANCH: ${{ github.event.pull_request.base.ref }}
34+
WORKFLOW_NAME: ${{ github.workflow }}
35+
WORKFLOW_RUN_ID: ${{ github.run_id }}
36+
SCRIPT_DIR: ${{ github.workspace }}/asterisk-ci-actions/scripts
37+
GH_TOKEN: ${{ secrets.github_token }}
38+
LOG_DIR: ${{ github.workspace }}/logs
39+
ACTIONS_OWNER: asterisk
40+
ACTIONS_REPO: asterisk-ci-actions
41+
ACTIONS_BRANCH: main
42+
43+
jobs:
44+
Cleanup:
45+
runs-on: ubuntu-latest
46+
steps:
47+
- id: setup
48+
run: |
49+
50+
gh pr edit --repo ${REPO} ${PR_NUMBER} --add-label duplicate
51+

0 commit comments

Comments
 (0)