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 }} 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"