Skip to content

Commit

Permalink
ci: trying to fix auto preview workflow! (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
zardoy authored Oct 22, 2024
1 parent 427ec21 commit 8955075
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ on:
types: [created]
pull_request_target:
jobs:
check-trigger:
runs-on: ubuntu-latest
steps:
- run: echo ${{ vars.AUTO_DEPLOY_PRS }}
- run: echo ${{ fromJson(vars.AUTO_DEPLOY_PRS) }}
- run: echo ${{ toJson(contains(fromJson(vars.AUTO_DEPLOY_PRS), github.event.pull_request.number)) }}
- run: echo ${{ toJson(contains(fromJson(vars.AUTO_DEPLOY_PRS), 120)) }}
deploy:
runs-on: ubuntu-latest
if: >-
Expand All @@ -19,7 +26,7 @@ jobs:
) ||
(
github.event_name == 'pull_request' &&
contains(fromJSON(vars.AUTO_DEPLOY_PRS), github.event.pull_request.number)
contains(fromJson(vars.AUTO_DEPLOY_PRS), github.event.pull_request.number)
)
)
permissions:
Expand Down

0 comments on commit 8955075

Please sign in to comment.