Merge pull request #1519 from robintown/fix-netlify-cd

Attempt to fix the Netlify CD
This commit is contained in:
Robin
2023-09-19 10:07:51 -04:00
committed by GitHub
2 changed files with 4 additions and 4 deletions

View File

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

View File

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