Skip to content

ci: fix release skip chain, add sanity, remove update_pre_commit#251

Merged
djdanielsson merged 6 commits into
develfrom
ci/fix-release-skip-chain
Apr 16, 2026
Merged

ci: fix release skip chain, add sanity, remove update_pre_commit#251
djdanielsson merged 6 commits into
develfrom
ci/fix-release-skip-chain

Conversation

@djdanielsson
Copy link
Copy Markdown
Contributor

Summary

  • Fix release workflow: The create_github_release job (and all downstream) was being skipped because changelog uses always() to handle the major_release_gate skip chain, but downstream jobs didn't propagate this. Added if: ${{ !cancelled() && needs.changelog.result == 'success' }} to create_github_release.
  • Add Ansible sanity CI using the reusable workflow from ansible/ansible-content-actions
  • Remove update_pre_commit.yml — dependabot already handles pre-commit version bumps

Root cause

GitHub Actions gotcha: when a job uses always() in its if to run despite a skipped dependency, all downstream jobs that depend on it also need an explicit if condition, otherwise they inherit the "skipped" status from the transitive dependency chain.

Test plan

  • Trigger release_auto.yml via workflow_dispatch — all jobs after changelog should now run
  • Verify sanity workflow runs on PRs

Made with Cursor

@djdanielsson djdanielsson force-pushed the ci/fix-release-skip-chain branch from 9dd22d8 to 95414ec Compare April 15, 2026 16:06
- Fix create_github_release skipped due to always() chain break
- Replace ansible_collections_tooling pre-commit with pre-commit/action
- Add Ansible sanity CI workflow
- Pin all actions to commit SHAs
- Remove update_pre_commit workflow (replaced by dependabot)

Made-with: Cursor
@djdanielsson djdanielsson force-pushed the ci/fix-release-skip-chain branch from 95414ec to 2b671f1 Compare April 15, 2026 16:10
djdanielsson and others added 5 commits April 15, 2026 16:35
Use ANSIBLE_GALAXY_SERVER_* env vars instead of generating temporary
ansible.cfg files. Cleaner, no file cleanup needed, and avoids leaving
secrets on disk.

Made-with: Cursor
Create GitHub release as draft so tarball upload succeeds before
publishing. Add !cancelled() guard to all downstream jobs. Update
pre-commit-config to use prek-actions v26.4.1 with sanity hook.

Made-with: Cursor
Add concurrency group so newer pushes cancel in-progress pre-commit
workflow runs for the same PR or branch.

Made-with: Cursor
@djdanielsson djdanielsson merged commit 817cb84 into devel Apr 16, 2026
3 of 4 checks passed
@djdanielsson djdanielsson deleted the ci/fix-release-skip-chain branch April 16, 2026 13:29
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.

1 participant