Attempt to fix the Netlify CD

This commit is contained in:
Robin
2023-09-19 09:47:21 -04:00
parent 0be1f593e7
commit 14905a4505
2 changed files with 4 additions and 4 deletions

View File

@@ -31,7 +31,7 @@ jobs:
uses: actions/github-script@v6.4.1
with:
script: |
const artifacts = await github.actions.listWorkflowRunArtifacts({
const artifacts = await github.rest.actions.listWorkflowRunArtifacts({
owner: context.repo.owner,
repo: context.repo.repo,
run_id: ${{ github.event.workflow_run.id }},
@@ -39,7 +39,7 @@ jobs:
const matchArtifact = artifacts.data.artifacts.filter((artifact) => {
return artifact.name == "build"
})[0];
const download = await github.actions.downloadArtifact({
const download = await github.rest.actions.downloadArtifact({
owner: context.repo.owner,
repo: context.repo.repo,
artifact_id: matchArtifact.id,

View File

@@ -31,7 +31,7 @@ jobs:
uses: actions/github-script@v6.4.1
with:
script: |
const artifacts = await github.actions.listWorkflowRunArtifacts({
const artifacts = await github.rest.actions.listWorkflowRunArtifacts({
owner: context.repo.owner,
repo: context.repo.repo,
run_id: ${{ github.event.workflow_run.id }},
@@ -39,7 +39,7 @@ jobs:
const matchArtifact = artifacts.data.artifacts.filter((artifact) => {
return artifact.name == "build"
})[0];
const download = await github.actions.downloadArtifact({
const download = await github.rest.actions.downloadArtifact({
owner: context.repo.owner,
repo: context.repo.repo,
artifact_id: matchArtifact.id,