[action] Update github actions on trigger and label. (#13542)
Why I did it github action will report error on forked repos. It is not by design. keep 'Approved for xxx branch' label in auto cherry pick workflow. How I did it Disable github action on folked repos. Keep 'approved for xxx' label in auto cherry pick workflow. How to verify it Which release bra
This commit is contained in:
parent
b59f3888ff
commit
cabaebb4b0
1
.github/workflows/automerge_scan.yml
vendored
1
.github/workflows/automerge_scan.yml
vendored
@ -6,6 +6,7 @@ on:
|
||||
|
||||
jobs:
|
||||
automerge_scan:
|
||||
if: github.repository_owner == 'sonic-net'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Debug
|
||||
|
1
.github/workflows/codeql-analysis.yml
vendored
1
.github/workflows/codeql-analysis.yml
vendored
@ -14,6 +14,7 @@ on:
|
||||
|
||||
jobs:
|
||||
analyze:
|
||||
if: github.repository_owner == 'sonic-net'
|
||||
name: Analyze
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
|
1
.github/workflows/label.yml
vendored
1
.github/workflows/label.yml
vendored
@ -20,6 +20,7 @@ on:
|
||||
|
||||
jobs:
|
||||
label:
|
||||
if: github.repository_owner == 'sonic-net'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/labeler@main
|
||||
|
2
.github/workflows/pr_cherrypick_poststep.yml
vendored
2
.github/workflows/pr_cherrypick_poststep.yml
vendored
@ -46,4 +46,4 @@ jobs:
|
||||
exit 1
|
||||
fi
|
||||
gh pr edit $origin_pr_url --add-label "Included in ${base_ref} Branch"
|
||||
gh pr edit $origin_pr_url --remove-label "Created PR to ${base_ref} Branch,Approved for ${base_ref} Branch"
|
||||
gh pr edit $origin_pr_url --remove-label "Created PR to ${base_ref} Branch"
|
||||
|
1
.github/workflows/semgrep.yml
vendored
1
.github/workflows/semgrep.yml
vendored
@ -10,6 +10,7 @@ on:
|
||||
|
||||
jobs:
|
||||
semgrep:
|
||||
if: github.repository_owner == 'sonic-net'
|
||||
name: Semgrep
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
|
Loading…
Reference in New Issue
Block a user