Skip to content
Open
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions .github/workflows/add-artifact-links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ jobs:
with:
github-token: ${{ secrets.token || secrets.GITHUB_TOKEN }}
script: |
console.log(`inputs.pr_number: `, inputs.pr_number)
console.log(`context.payload.workflow_run: `, context.payload.workflow_run)
console.log(`context.payload.workflow_run.pull_requests.length > 0: `, context?.payload?.workflow_run?.pull_requests?.length > 0 ?? -1)
console.log(`context.payload.workflow_run.pull_requests[0].number: `, context.payload.workflow_run.pull_requests[0].number )
console.log(`context.payload.pull_request?.number: `, context.payload.pull_request?.number)
// Get PR number from input, workflow_run event, or context
const prNumber = ${{ inputs.pr_number }} ||
(context.payload.workflow_run && context.payload.workflow_run.pull_requests.length > 0
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,5 @@ Look at the wiki to [check for further information ](https://github.com/Mobiflig

### Who do I talk to? ###
Sebastian

Trigger PR, again, again, again