Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using GHA's concurrency syntax #665

Open
jakirkham opened this issue Jan 24, 2023 · 0 comments
Open

Using GHA's concurrency syntax #665

jakirkham opened this issue Jan 24, 2023 · 0 comments

Comments

@jakirkham
Copy link
Member

Currently we have this logic to prevent multiple runs on main for different commits:

- name: Prevent multiple jobs running in parallel
id: conversion_lock
uses: beckermr/turnstyle-python@v1
with:
abort-after-seconds: 3
poll-interval-seconds: 2
github-token: ${{ secrets.GITHUB_TOKEN }}

Another option would be to use GHA's concurrency syntax. Here's an example.

If this seems reasonable, GHA configs in other repos may be able to employ the same strategy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant