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
43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CI

on:
push:
branches: [main, develop]
paths-ignore:
["**.md", ".github/ISSUE_TEMPLATE/**", ".github/pull_request_template.md"]
pull_request:
schedule:
- cron: "0 23 * * *" # Daily at 11 PM UTC
workflow_dispatch:
inputs:
version-bump:
description: 'Version bump type'
required: false
default: 'auto'
type: choice
options:
- auto
- patch
- minor
- major

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

# The caller grants; a called workflow can only reduce. This is the union of what the
# pipelines request -- dotnet.yml's release job needs contents and packages, its security
# job needs id-token -- and a pipeline that needs a permission missing here fails the run
# at startup, before any job exists to report it.
permissions:
contents: write
packages: write
id-token: write

jobs:
ci:
uses: ktsu-dev/.github/.github/workflows/ci-shared.yml@release
secrets: inherit
with:
# `inputs` is empty on push, pull_request and schedule; only a dispatch sets it.
version-bump: ${{ inputs.version-bump || 'auto' }}
4 changes: 2 additions & 2 deletions .github/workflows/dependabot-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ name: Dependabot auto-merge
on:
workflow_run:
workflows:
- ".NET Workflow"
- "CI"
types: [completed]

permissions:
Expand All @@ -28,6 +28,6 @@ jobs:
if: >
github.event.workflow_run.event == 'pull_request' &&
github.event.workflow_run.conclusion == 'success'
uses: ktsu-dev/.github/.github/workflows/dependabot-merge.yml@main
uses: ktsu-dev/.github/.github/workflows/dependabot-merge.yml@release
with:
head-sha: ${{ github.event.workflow_run.head_sha }}
Loading
Loading