Skip to content

Commit c8a0d8a

Browse files
authored
chore: cleanup github action workflows (#522)
- Use consistent label check for external PRs - Remove unused approved-readme - Remove unused labels workflow
1 parent bea4637 commit c8a0d8a

File tree

5 files changed

+2
-241
lines changed

5 files changed

+2
-241
lines changed

.github/labels.yml

-99
This file was deleted.

.github/workflows/approve-readme.yaml

-73
This file was deleted.

.github/workflows/codeql.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ permissions: read-all
3333

3434
jobs:
3535
analyze:
36-
if: "${{ github.event.action != 'labeled' || github.event.label.name == 'tests: run' }}"
36+
# Run this job only on PRs that have been labeled
37+
if: "${{ (github.event.action != 'labeled' && github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name) || github.event.label.name == 'tests: run' }}"
3738
name: Analyze
3839
runs-on: ubuntu-latest
3940
permissions:

.github/workflows/labels.yaml

-34
This file was deleted.

.github/workflows/samples.yaml

-34
This file was deleted.

0 commit comments

Comments
 (0)