-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (33 loc) · 998 Bytes
/
release.yaml
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
---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Release
on:
# Manual Trigger
workflow_dispatch:
inputs:
dry-run:
description: Dry Run
required: false
default: false
type: boolean
# Dry Run on any PR that changes this pipeline or that should ultimately trigger a release when merged
pull_request:
paths:
- ".github/workflows/git-release.yaml"
- "go.mod"
- "go.sum"
- "**/**.go"
# "Wet" Run on any push to the main branch that modified a go-related file
push:
branches: ["main", "master"]
paths:
- "go.mod"
- "go.sum"
- "**/**.go"
jobs:
git:
uses: mirceanton/reusable-workflows/.github/workflows/reusable-release-semver.yaml@09f31ab6340ce5651dc6c28512a82de6b2415fb9 # v3.8.2
secrets: inherit
with:
dry-run: ${{ inputs.dry-run || github.event_name == 'pull_request' }}
config-file: ./.github/configs/release.config.mjs