Skip to content

Commit d63e8a4

Browse files
committed
refactor: test
1 parent 0580169 commit d63e8a4

3 files changed

Lines changed: 18 additions & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Build
2+
3+
on:
4+
pull_request:
5+
6+
permissions:
7+
contents: read # for actions/checkout to read the repository
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
14+
- uses: ./.github/workflows/actions/setup-node
15+
- uses: ./.github/workflows/actions/build-packages
16+
- uses: ./.github/workflows/actions/build-docs

.github/workflows/deploy-preview.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ permissions:
1010

1111
jobs:
1212
deploy:
13-
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
13+
if: ${{ github.event.pull_request.head.repo.full_name == github.repository && contains(fromJSON('["OWNER", "MEMBER", "CONTRIBUTOR"]'), github.event.pull_request.author_association) }}
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
@@ -20,7 +20,6 @@ jobs:
2020
- uses: ./.github/workflows/actions/setup-node
2121
- uses: ./.github/workflows/actions/build-packages
2222
- uses: ./.github/workflows/actions/build-docs
23-
# - if: ${{ github.event.pull_request.author_association == 'OWNER' || github.event.pull_request.author_association == 'MEMBER' }}
2423
- uses: FirebaseExtended/action-hosting-deploy@500ac625ca2dd40cbd15f7659af953801858032a # v0.11.0
2524
with:
2625
repoToken: '${{ secrets.GITHUB_TOKEN }}'

.github/workflows/redeploy-preview.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ permissions:
1212

1313
jobs:
1414
redeploy:
15-
# && (github.event.comment.author_association == 'OWNER' || github.event.comment.author_association == 'MEMBER')
16-
if: ${{ github.event.issue.pull_request && contains(github.event.comment.body, '/redeploy-preview') }}
15+
if: ${{ github.event.issue.pull_request && contains(github.event.comment.body, '/redeploy-preview') && contains(fromJSON('["OWNER", "MEMBER", "CONTRIBUTOR"]'), github.event.comment.author_association) }}
1716
runs-on: ubuntu-latest
1817
steps:
1918
- uses: xt0rted/pull-request-comment-branch@e8b8daa837e8ea7331c0003c9c316a64c6d8b0b1 # v3.0.0

0 commit comments

Comments
 (0)