From e9ad12eeda032df345e50bda75b30f099adb7a87 Mon Sep 17 00:00:00 2001 From: Einar Date: Fri, 18 Sep 2026 07:05:06 +0200 Subject: [PATCH 1/2] Simplify Publish to tag releases the way Chronicle does The workflow called a reusable kit-release.yml that also tried to push AI corpus updates back to main using a KIT_RELEASE_TOKEN secret that was never configured in this repository, so every Publish run failed before any job started - merging did not even cut a release. Publish only ever needed to tag and create the GitHub release, exactly like Chronicle's publish.yml does. Call cratis/release-action directly with the default token and drop the corpus-sync job; the AI corpus is kept current with cratis ai update as its own deliberate step. --- .github/workflows/publish.yml | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b6b22a7..4700d36 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -27,19 +27,23 @@ on: - 'package.json' - '.cratis/ai.json' - '.github/workflows/publish.yml' - schedule: - - cron: '0 5 * * 1' permissions: contents: write jobs: - kit: - if: github.event_name != 'pull_request' || github.event.pull_request.merged == true - # The reusable release workflow is owned by the C# kit repository. - uses: Cratis/Eventmodelers-Build-Kit-CSharp/.github/workflows/kit-release.yml@main - secrets: - commit-token: ${{ secrets.KIT_RELEASE_TOKEN }} - with: - version: ${{ github.event.inputs.version }} - release-notes: ${{ github.event.inputs.release-notes }} + release: + if: github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true + runs-on: ubuntu-latest + timeout-minutes: 30 + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Release + id: release + uses: cratis/release-action@v1 + with: + version: ${{ github.event.inputs.version }} + release-notes: ${{ github.event.inputs.release-notes }} From 7fb379a460cccb6466ceed6d0c1a48b282de8027 Mon Sep 17 00:00:00 2001 From: Einar Date: Fri, 18 Sep 2026 07:07:40 +0200 Subject: [PATCH 2/2] Check out the branch before diffing in the no-release job The no-release job ran git diff against the base and head SHAs without ever checking the repository out, so it had no git history to diff against and failed outright the first time a PR actually carried the no-release label. --- .github/workflows/pull-requests.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/pull-requests.yml b/.github/workflows/pull-requests.yml index d76d42b..4fe501e 100644 --- a/.github/workflows/pull-requests.yml +++ b/.github/workflows/pull-requests.yml @@ -137,6 +137,11 @@ jobs: if: contains(github.event.pull_request.labels.*.name, 'no-release') steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Check for Documentation Changes run: | echo "✅ PR marked as no-release"