Skip to content

Commit

Permalink
Merge pull request #32 from NJUPT-SAST/Xunop-fix-ci
Browse files Browse the repository at this point in the history
fix: ci: prevent random access through pr
  • Loading branch information
Xunop authored Sep 9, 2023
2 parents e63485f + 84c744b commit 623f546
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/link.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
name: Go

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
types:
- closed

jobs:

build:
if: github.event.pull_request.merged
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit 623f546

Please sign in to comment.