Skip to content

Commit c2206ae

Browse files
ci: remove common code for internal checks (#104)
Link to PR: Arm-Debug/vgf-adapter-model-explorer#104
1 parent a34ef07 commit c2206ae

File tree

1 file changed

+4
-21
lines changed

1 file changed

+4
-21
lines changed

.github/workflows/pr-internal-checks.yml

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,10 @@ permissions:
1010
contents: read
1111

1212
jobs:
13-
call-internal-checks:
14-
if: ${{ github.event.repository.private && contains(fromJSON('["opened","reopened","synchronize","edited"]'), github.event.action) }}
13+
checks:
14+
if: ${{ github.event.repository.private }}
1515
uses: Arm-Debug/ai-debug-workflows/.github/workflows/internal-checks.yml@main
1616
with:
17-
change_state: ${{ contains(fromJSON('["opened","reopened"]'), github.event.action) && 'CREATED' || 'UPDATED' }}
18-
secrets: inherit
19-
20-
remove-label:
21-
if: ${{ github.event.repository.private && github.event.action != 'labeled' && github.event.action != 'unlabeled' }}
22-
runs-on: ubuntu-latest
23-
env:
24-
GH_TOKEN: ${{ github.token }}
25-
steps:
26-
- run: gh pr edit "${{ github.event.pull_request.number }}" --repo "${{ github.repository }}" --remove-label "checked-and-approved"
27-
28-
require-internal-checks-label:
29-
needs: remove-label
30-
if: ${{ github.event.repository.private && always() }}
31-
permissions:
32-
contents: read
33-
pull-requests: read
34-
issues: read
35-
uses: Arm-Debug/ai-debug-workflows/.github/workflows/internal-checks-label.yml@main
17+
internal_scan: true
18+
internal_review: true
3619
secrets: inherit

0 commit comments

Comments
 (0)