Skip to content

Commit 1aaf430

Browse files
committed
Only run diff-API workflow when releasing new versions
1 parent c96771f commit 1aaf430

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/check-public-api.yaml

+9-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,15 @@ env:
44
RUST_BACKTRACE: 1
55
on:
66
push:
7-
branches: [ "master" ]
8-
pull_request:
9-
branches: [ "master" ]
7+
branches:
8+
- 'master'
9+
tags:
10+
# this is _not_ a regex, see: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet
11+
- '[0-9]+.[0-9]+.[0-9]+*'
12+
workflow_dispatch:
13+
inputs:
14+
diff-api:
15+
description: 'Diff API'
1016
jobs:
1117
setup:
1218
name: Set up

0 commit comments

Comments
 (0)