Skip to content

Commit ebb6cf3

Browse files
committed
Move CI onto the shared ci-shared.yml pipeline
Replace this repository's copy of dotnet.yml with the small ci.yml caller from ktsu-dev/.github/docs/shared-ci.md, which dispatches to the shared .NET pipeline at @Release. The jobs are the same ones the local copy ran; only where they are defined changes. The Dependabot gate moves in the same commit because it names the workflow it waits on. Left on ".NET Workflow", it would wait for a workflow that no longer exists and auto-merge would stop without saying so. It now waits on "CI" and calls the shared gate at @Release, as Sorting has since the canary. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RTMFFSY8FY5CpAhf6ikNH1
1 parent 8f01a71 commit ebb6cf3

3 files changed

Lines changed: 45 additions & 620 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main, develop]
6+
paths-ignore:
7+
["**.md", ".github/ISSUE_TEMPLATE/**", ".github/pull_request_template.md"]
8+
pull_request:
9+
schedule:
10+
- cron: "0 23 * * *" # Daily at 11 PM UTC
11+
workflow_dispatch:
12+
inputs:
13+
version-bump:
14+
description: 'Version bump type'
15+
required: false
16+
default: 'auto'
17+
type: choice
18+
options:
19+
- auto
20+
- patch
21+
- minor
22+
- major
23+
24+
concurrency:
25+
group: ${{ github.workflow }}-${{ github.ref }}
26+
cancel-in-progress: true
27+
28+
# The caller grants; a called workflow can only reduce. This is the union of what the
29+
# pipelines request -- dotnet.yml's release job needs contents and packages, its security
30+
# job needs id-token -- and a pipeline that needs a permission missing here fails the run
31+
# at startup, before any job exists to report it.
32+
permissions:
33+
contents: write
34+
packages: write
35+
id-token: write
36+
37+
jobs:
38+
ci:
39+
uses: ktsu-dev/.github/.github/workflows/ci-shared.yml@release
40+
secrets: inherit
41+
with:
42+
# `inputs` is empty on push, pull_request and schedule; only a dispatch sets it.
43+
version-bump: ${{ inputs.version-bump || 'auto' }}

‎.github/workflows/dependabot-merge.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ name: Dependabot auto-merge
1515
on:
1616
workflow_run:
1717
workflows:
18-
- ".NET Workflow"
18+
- "CI"
1919
types: [completed]
2020

2121
permissions:
@@ -28,6 +28,6 @@ jobs:
2828
if: >
2929
github.event.workflow_run.event == 'pull_request' &&
3030
github.event.workflow_run.conclusion == 'success'
31-
uses: ktsu-dev/.github/.github/workflows/dependabot-merge.yml@main
31+
uses: ktsu-dev/.github/.github/workflows/dependabot-merge.yml@release
3232
with:
3333
head-sha: ${{ github.event.workflow_run.head_sha }}

0 commit comments

Comments
 (0)