Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/preview-dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
steps:
- name: Check write permission
id: perm
uses: actions/github-script@v8
uses: actions/github-script@v9
with:
result-encoding: string
script: |
Expand All @@ -42,7 +42,7 @@ jobs:

- name: Deny unauthorized user
if: steps.perm.outputs.result == 'false'
uses: actions/github-script@v8
uses: actions/github-script@v9
with:
script: |
await github.rest.issues.createComment({
Expand All @@ -54,7 +54,7 @@ jobs:

- name: React with rocket
if: steps.perm.outputs.result == 'true'
uses: actions/github-script@v8
uses: actions/github-script@v9
with:
script: |
await github.rest.reactions.createForIssueComment({
Expand All @@ -70,7 +70,7 @@ jobs:
steps.perm.outputs.result == 'true' &&
startsWith(github.event.comment.body, '/preview') &&
!startsWith(github.event.comment.body, '/stop-preview')
uses: actions/github-script@v8
uses: actions/github-script@v9
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
Expand All @@ -87,7 +87,7 @@ jobs:
if: |
steps.perm.outputs.result == 'true' &&
startsWith(github.event.comment.body, '/stop-preview')
uses: actions/github-script@v8
uses: actions/github-script@v9
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
Expand All @@ -105,7 +105,7 @@ jobs:
if: github.event_name == 'pull_request' && github.event.action == 'closed'
steps:
- name: Stop preview
uses: actions/github-script@v8
uses: actions/github-script@v9
with:
script: |
await github.rest.actions.createWorkflowDispatch({
Expand Down
Loading