Skip to content

Commit fa1b76c

Browse files
authored
chore: remove workflow file changes from pr #1312
1 parent 4fca014 commit fa1b76c

4 files changed

Lines changed: 3 additions & 9 deletions

File tree

.github/workflows/lib_build.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ jobs:
3636
- uses: actions/checkout@master
3737
with:
3838
fetch-depth: 0
39-
allow-unsafe-pr-checkout: true
4039

4140
- name: Setup Go environment
4241
uses: actions/setup-go@master

.github/workflows/lib_lint.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ jobs:
3636
ref: ${{ inputs.ref }}
3737
fetch-depth: ${{ inputs.fetch-depth }}
3838
submodules: ${{ inputs.submodules }}
39-
allow-unsafe-pr-checkout: true
4039

4140
- name: Prepare Necessary Runtime Files
4241
run: |

.github/workflows/lib_run.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ jobs:
3838
ref: ${{ inputs.ref }}
3939
fetch-depth: ${{ inputs.fetch-depth }}
4040
submodules: ${{ inputs.submodules }}
41-
allow-unsafe-pr-checkout: true
4241

4342
- name: Prepare and Build
4443
shell: bash

.github/workflows/pull.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
name: PullLint
22
on:
3-
pull_request:
4-
types: [opened, synchronize, reopened]
53
pull_request_target:
64
types: [assigned, opened, synchronize, reopened]
75
jobs:
86
# This workflow closes invalid PR
97
close-pr:
108
name: closepr
11-
if: ${{ github.event_name == 'pull_request_target' }}
129
# The type of runner that the job will run on
1310
runs-on: ubuntu-latest
1411
permissions: write-all
@@ -23,22 +20,22 @@ jobs:
2320
comment: "非法PR. 请`fork`后修改自己的仓库, 而不是向主仓库提交更改. 如果您确信您的PR是为了给主仓库新增功能或修复bug, 请更改默认PR标题. **注意**: 如果您再次触发本提示, 则有可能导致账号被封禁."
2421

2522
golangci:
26-
if: ${{ github.event_name == 'pull_request' && !contains(github.event.pull_request.title, '.go') }}
23+
needs: close-pr
24+
if: ${{ !contains(github.event.pull_request.title, '.go') }}
2725
uses: ./.github/workflows/lib_lint.yml
2826
with:
2927
ref: ${{ github.event.pull_request.head.sha }}
3028
commit_back: false
3129

3230
runmain:
3331
needs: golangci
34-
if: ${{ github.event_name == 'pull_request' && !contains(github.event.pull_request.title, '.go') }}
32+
if: ${{ !contains(github.event.pull_request.title, '.go') }}
3533
uses: ./.github/workflows/lib_run.yml
3634
with:
3735
ref: ${{ github.event.pull_request.head.sha }}
3836

3937
build:
4038
needs: [runmain]
41-
if: ${{ github.event_name == 'pull_request' && !contains(github.event.pull_request.title, '.go') }}
4239
uses: ./.github/workflows/lib_build.yml
4340
with:
4441
prefix: "zbp_"

0 commit comments

Comments
 (0)