Repository navigation
52 lines (47 loc) · 1.52 KB
/
Copy pathci.yml
File metadata and controls
52 lines (47 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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' }}
# Regenerates docs/gallery once the pipeline has passed on a push to main. It has to run after
# the pipeline, not beside it: see the header of app-gallery.yml.
app-gallery:
needs: ci
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: ./.github/workflows/app-gallery.yml
permissions:
contents: write