Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 15 additions & 11 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
5 changes: 5 additions & 0 deletions .github/workflows/pull-requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Loading