Skip to content

Commit c7b231c

Browse files
committed
Improve CI triggers
1 parent f214c03 commit c7b231c

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

.github/workflows/docker-publish.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
1+
# This workflow will build and publish Docker images of smahub for each push of a tag starting with "v"
2+
3+
---
4+
# .github/workflows/docker-publish.yml
15
name: Build and publish Docker image
26

37
on:
48
push:
5-
branches: [ "main" ]
6-
tags: [ 'v*.*.*' ]
7-
pull_request:
8-
branches: [ "main" ]
9+
tags:
10+
- v*
11+
12+
concurrency:
13+
group: "publish-${{ github.head_ref || github.ref }}"
14+
cancel-in-progress: true
915

1016
env:
1117
REGISTRY: ghcr.io
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# This workflow will install Python dependencies, run tests and lint with a single version of Python
22
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
33

4+
---
5+
# .github/workflows/python-lint.yml
46
name: Run Python linter and tests
57

68
on:
@@ -9,14 +11,16 @@ on:
911
pull_request:
1012
branches: [ "main" ]
1113

14+
concurrency:
15+
group: "lint-${{ github.head_ref || github.ref }}"
16+
cancel-in-progress: true
17+
1218
permissions:
1319
contents: read
1420

1521
jobs:
1622
build:
17-
1823
runs-on: ubuntu-latest
19-
2024
steps:
2125
- uses: actions/checkout@v4
2226
- name: Set up Python 3.10

0 commit comments

Comments
 (0)