Skip to content
Merged
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
23 changes: 23 additions & 0 deletions .github/actions/javascript/waitForPreviousRuns/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: 'Wait for previous workflow runs'
description: 'Polls GitHub API and waits until all older runs of the same workflow have completed (FIFO queue)'
inputs:
GITHUB_TOKEN:
description: Auth token for GitHub API
required: true
WORKFLOW_ID:
description: The workflow filename (e.g. testBuildOnPush.yml)
required: true
CURRENT_RUN_ID:
description: The current workflow run ID
required: true
POLL_RATE_SECONDS:
description: Polling interval in seconds (default 20)
required: false
default: '20'
QUEUE_LIMIT:
description: Max number of recent workflow runs to fetch per poll (default 20)
required: false
default: '20'
runs:
using: 'node20'
main: './index.js'
Loading
Loading