Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ahmadnassri/action-workflow-queue
if the same workflow is already running from a previous commit, wait for it to finish
https://github.com/ahmadnassri/action-workflow-queue
action github workflow-run
Last synced: 2 months ago
JSON representation
if the same workflow is already running from a previous commit, wait for it to finish
- Host: GitHub
- URL: https://github.com/ahmadnassri/action-workflow-queue
- Owner: ahmadnassri
- License: mit
- Created: 2021-02-11T18:21:40.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-03-28T17:29:37.000Z (10 months ago)
- Last Synced: 2024-05-02T05:33:57.818Z (9 months ago)
- Topics: action, github, workflow-run
- Language: JavaScript
- Homepage:
- Size: 55.7 KB
- Stars: 54
- Watchers: 4
- Forks: 20
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# GitHub Action: Workflow Run Queue
If the same workflow is already running from a previous commit, wait for it to finish
[![license][license-img]][license-url]
[![release][release-img]][release-url]Why?
Workflows run on every commit asynchronously, this is fine for most cases, however, you might want to wait for a previous commit workflow to finish before running another one, some example use-cases:
- Deployment workflows
- Terraform workflows
- Database Migrations## Usage
###### `.github/workflows/my-workflow.yml`
``` yaml
jobs:
xyz:
runs-on: ubuntu-lateststeps:
- uses: actions/checkout@v2
- uses: ahmadnassri/action-workflow-queue@v1# only runs additional steps if there is no other instance of `my-workflow.yml` currently running
```### Inputs
| input | required | default | description |
|----------------|----------|----------------|-------------------------------------------------|
| `github-token` | ❌ | `github.token` | The GitHub token used to call the GitHub API |
| `timeout` | ❌ | `600000` | timeout before we stop trying (in milliseconds) |
| `delay` | ❌ | `10000` | delay between status checks (in milliseconds) |----
> Author: [Ahmad Nassri](https://www.ahmadnassri.com/) •
> Twitter: [@AhmadNassri](https://twitter.com/AhmadNassri)[license-url]: LICENSE
[license-img]: https://badgen.net/github/license/ahmadnassri/action-workflow-queue[release-url]: https://github.com/ahmadnassri/action-workflow-queue/releases
[release-img]: https://badgen.net/github/release/ahmadnassri/action-workflow-queue