mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-23 04:21:49 +03:00
ci: fix workflow secure in build.yml (#1644)
This commit is contained in:
parent
6a0209dde2
commit
33320bd38e
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
@ -3,6 +3,9 @@ name: Build & Test
|
||||
on:
|
||||
pull_request_target:
|
||||
branches: [master]
|
||||
types:
|
||||
- labeled
|
||||
- unlabeled
|
||||
paths-ignore:
|
||||
- '.husky'
|
||||
- '.vscode'
|
||||
@ -19,10 +22,13 @@ jobs:
|
||||
build:
|
||||
name: Build on Pull Request
|
||||
runs-on: ubuntu-latest
|
||||
if: contains(github.event.pull_request.labels.*.name, 'safe to test')
|
||||
environment: development
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
- name: Use Node.js LTS
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
@ -148,6 +154,8 @@ jobs:
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
- name: Use Node.js LTS
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
|
Loading…
Reference in New Issue
Block a user