Skip to content

Commit 8e6560c

Browse files
committed
.github: fixup 1
1 parent 15441f6 commit 8e6560c

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

.github/workflows/AsteriskPRChanged.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ jobs:
5252
wget -qO asterisk-ci-actions.tar.gz \
5353
https://github.com/${ACTIONS_OWNER}/${ACTIONS_REPO}/archive/refs/heads/${ACTIONS_BRANCH}.tar.gz
5454
tar -xf asterisk-ci-actions.tar.gz --transform="s/^${ACTIONS_REPO}-${ACTIONS_BRANCH}/asterisk-ci-actions/g"
55+
ls -al
5556
56-
gh pr edit ${PR_NUMBER} --add-label bug
57+
gh --repo ${REPO} pr edit --add-label bug
5758

.github/workflows/OnPRChanged.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,26 @@ permissions:
2323
# security-events: read|write|none
2424
statuses: read
2525

26+
env:
27+
REPO: ${{ github.repository }}
28+
REPO_DIR: ${{ github.workspace }}/${{ github.event.repository.name }}
29+
REPO_ORG: ${{ github.event.repository.owner.login }}
30+
PR_NUMBER: ${{ github.event.number }}
31+
BASE_BRANCH: ${{ github.event.pull_request.base.ref }}
32+
WORKFLOW_NAME: ${{ github.workflow }}
33+
WORKFLOW_RUN_ID: ${{ github.run_id }}
34+
2635
jobs:
2736
PRChanged:
2837
name: "run-check"
2938
concurrency:
3039
group: check-${{ github.base_ref }}-${{ github.ref_name }}
3140
cancel-in-progress: true
3241
uses: ./.github/workflows/AsteriskPRChanged.yml
42+
43+
Cleanup:
44+
runs-on: ubuntu-latest
45+
steps:
46+
- name: CleanupStep
47+
run: |
48+
gh --repo ${REPO} pr edit --add-label duplicate

0 commit comments

Comments
 (0)