Skip to content

Update GitHub Actions configuration #1256

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

tianon
Copy link
Member

@tianon tianon commented Apr 10, 2025

  • remove meaningless badge
  • also lint/test pushes (not just PRs)
  • allow running the job explicitly on-demand ("workflow dispatch")
  • cancel in-progress runs on PR update / push to the same branch
  • explicitly limit GitHub token permissions

See also #1251

- remove meaningless badge
- also lint/test pushes (not just PRs)
- allow running the job explicitly on-demand ("workflow dispatch")
- cancel in-progress runs on PR update / push to the same branch
- explicitly limit GitHub token permissions

Signed-off-by: Tianon Gravi <[email protected]>
@@ -1,8 +1,16 @@
name: Render and Lint Documentation

on:
push:
Copy link
Contributor

@sudo-bmitch sudo-bmitch Apr 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if we split the difference. Limit the push to only the main branch, but allow pull requests on all branches.

Comment on lines +8 to +10
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this mean a manual dispatch would kill the run for a pull request? I'm less concerned about multiple runs if we don't run on a push to every branch.

timscharfenort8

This comment was marked as abuse.

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

Successfully merging this pull request may close these issues.

3 participants