From e827431900163f0f0a5c2f8f8ed08f0d35c5b860 Mon Sep 17 00:00:00 2001 From: Digikwal <79085106+digikwal@users.noreply.github.com> Date: Thu, 26 Jun 2025 17:15:26 +0200 Subject: [PATCH] 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 --- .github/workflows/release-trigger.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/release-trigger.yml diff --git a/.github/workflows/release-trigger.yml b/.github/workflows/release-trigger.yml new file mode 100644 index 00000000..fbe047cc --- /dev/null +++ b/.github/workflows/release-trigger.yml @@ -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 }}