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
18 changes: 9 additions & 9 deletions .github/workflows/pr-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:

- name: Get PR Information
id: get-pr
uses: actions/github-script@v7
uses: actions/github-script@v8
env:
PR_NUMBER: ${{ github.event.issue.number }}
with:
Expand Down Expand Up @@ -100,15 +100,15 @@ jobs:
- name: Create initial status comment
id: create-comment
if: steps.parse.outputs.should_run == 'true' || steps.parse.outputs.cleanup_only == 'true'
uses: actions/github-script@v7
uses: actions/github-script@v8
with:
script: |
const { handleInitialComment } = require('./.github/workflows/preview-automation/workflow-actions.js');
return await handleInitialComment(github, context, core, ${{ toJSON(steps.parse.outputs) }});

- name: Update comment for pending approval
if: steps.parse.outputs.should_run == 'true' || steps.parse.outputs.cleanup_only == 'true'
uses: actions/github-script@v7
uses: actions/github-script@v8
with:
script: |
const { handlePendingApproval } = require('./.github/workflows/preview-automation/workflow-actions.js');
Expand Down Expand Up @@ -140,7 +140,7 @@ jobs:
ref: ${{ needs.parse-comment.outputs.pr_head_sha }}

- name: Update comment - preview starting
uses: actions/github-script@v7
uses: actions/github-script@v8
with:
script: |
const { handlePreviewStarting } = require('./.github/workflows/preview-automation/workflow-actions.js');
Expand Down Expand Up @@ -222,15 +222,15 @@ jobs:
env:
S3_URL: ${{ steps.params.outputs.s3_url }}
BUCKET_NAME: ${{ steps.params.outputs.bucket_name }}
uses: actions/github-script@v7
uses: actions/github-script@v8
with:
script: |
const { handlePreviewSuccess } = require('./.github/workflows/preview-automation/workflow-actions.js');
await handlePreviewSuccess(github, context, process.env);

- name: Update comment - preview failure
if: failure()
uses: actions/github-script@v7
uses: actions/github-script@v8
with:
script: |
const { handlePreviewFailure } = require('./.github/workflows/preview-automation/workflow-actions.js');
Expand Down Expand Up @@ -292,7 +292,7 @@ jobs:

- name: Comment on PR about cleanup
if: steps.cleanup.outputs.cleanup_performed == 'true'
uses: actions/github-script@v7
uses: actions/github-script@v8
env:
BUCKET_NAME: ${{ steps.cleanup.outputs.bucket_name }}
with:
Expand Down Expand Up @@ -338,7 +338,7 @@ jobs:
aws-region: us-east-1

- name: Update comment - cleanup starting
uses: actions/github-script@v7
uses: actions/github-script@v8
with:
script: |
const { handleCleanupStarting } = require('./.github/workflows/preview-automation/workflow-actions.js');
Expand Down Expand Up @@ -379,7 +379,7 @@ jobs:
if: always()
env:
BUCKET_NAME: ${{ steps.cleanup.outputs.bucket_name }}
uses: actions/github-script@v7
uses: actions/github-script@v8
with:
script: |
const { handleCleanupResult } = require('./.github/workflows/preview-automation/workflow-actions.js');
Expand Down
Loading