mirror of
https://github.com/status-im/spiff-arena.git
synced 2025-03-01 01:40:42 +00:00
add debug
This commit is contained in:
parent
d705a4146f
commit
e1757afe10
22
.github/workflows/auto-merge-dependabot-prs.yml
vendored
22
.github/workflows/auto-merge-dependabot-prs.yml
vendored
@ -20,15 +20,15 @@ permissions:
|
||||
|
||||
jobs:
|
||||
# uncomment this to print the context for debugging in case a job is getting skipped
|
||||
# printJob:
|
||||
# name: Print event
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - name: Dump GitHub context
|
||||
# env:
|
||||
# GITHUB_CONTEXT: ${{ toJson(github) }}
|
||||
# run: |
|
||||
# echo "$GITHUB_CONTEXT"
|
||||
printJob:
|
||||
name: Print event
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Dump GitHub context
|
||||
env:
|
||||
GITHUB_CONTEXT: ${{ toJson(github) }}
|
||||
run: |
|
||||
echo "$GITHUB_CONTEXT"
|
||||
|
||||
dependabot:
|
||||
runs-on: ubuntu-latest
|
||||
@ -44,14 +44,18 @@ jobs:
|
||||
uses: actions/github-script@v6
|
||||
with:
|
||||
script: |
|
||||
console.log("download artifact: started")
|
||||
console.log("download artifact: content.payload: ", context.payload)
|
||||
let allArtifacts = await github.rest.actions.listWorkflowRunArtifacts({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
run_id: context.payload.workflow_run.id,
|
||||
});
|
||||
console.log("download artifact: got allArtifacts")
|
||||
let matchArtifact = allArtifacts.data.artifacts.filter((artifact) => {
|
||||
return artifact.name == "pr_number"
|
||||
})[0];
|
||||
console.log("download artifact: got matchArtifact: ", matchArtifact)
|
||||
let download = await github.rest.actions.downloadArtifact({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
|
Loading…
x
Reference in New Issue
Block a user