mirror of
https://github.com/we-promise/sure.git
synced 2026-06-08 12:19:03 +00:00
chore(ci): finish Node 24 GitHub Actions migration (#2221)
* chore(ci): finish Node 24 GitHub Actions migration * chore(ci): update preview security check for github-script v8
This commit is contained in:
2
.github/workflows/preview-cleanup.yml
vendored
2
.github/workflows/preview-cleanup.yml
vendored
@@ -54,7 +54,7 @@ jobs:
|
||||
wrangler delete --name "$WORKER_NAME" --force || echo "Worker may not exist"
|
||||
|
||||
- name: Delete GitHub Deployment
|
||||
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7.1.0
|
||||
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
|
||||
with:
|
||||
script: |
|
||||
const environment = `preview-pr-${{ github.event.pull_request.number }}`;
|
||||
|
||||
8
.github/workflows/preview-deploy.yml
vendored
8
.github/workflows/preview-deploy.yml
vendored
@@ -40,7 +40,7 @@ jobs:
|
||||
|
||||
- name: Resolve preview request
|
||||
id: preview
|
||||
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7
|
||||
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
|
||||
with:
|
||||
script: |
|
||||
const { resolvePreviewRequest } = require('./trusted-preview-resolver/workers/preview/deploy/resolve_preview_request.cjs');
|
||||
@@ -66,7 +66,7 @@ jobs:
|
||||
- name: Create GitHub Deployment
|
||||
if: env.IS_FORK == 'false'
|
||||
id: deployment
|
||||
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7
|
||||
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
|
||||
with:
|
||||
script: |
|
||||
const prNumber = process.env.PR_NUMBER;
|
||||
@@ -551,7 +551,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Update Deployment Status
|
||||
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7
|
||||
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
|
||||
with:
|
||||
script: |
|
||||
const state = process.env.DEPLOY_RESULT === 'success' ? 'success' : 'failure';
|
||||
@@ -581,7 +581,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Comment on PR
|
||||
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7
|
||||
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
|
||||
with:
|
||||
script: |
|
||||
const previewUrl = process.env.PREVIEW_URL;
|
||||
|
||||
Reference in New Issue
Block a user