ci: Add unified Check workflow for lint and pre-commit

Introduces a reusable workflow that waits until the 'Check' workflow has successfully passed on the current commit.

Also adds 'release-trigger', which runs on push to main and calls this reusable workflow before allowing semantic-release to continue.

- Prevents race conditions between quality checks and release
- No external dependencies (uses native GitHub CLI)
- Improves reliability and control of CI/CD sequencing
This commit is contained in:
Digikwal 2025-06-26 17:15:26 +02:00 committed by GitHub
parent d54fbd96cc
commit e827431900
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

14
.github/workflows/release-trigger.yml vendored Normal file
View file

@ -0,0 +1,14 @@
name: Release Trigger
on:
push:
branches:
- main
jobs:
wait:
uses: ./.github/workflows/wait-for-check.yml
with:
sha: ${{ github.sha }}
secrets:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}