Skip to content

Commit b05a2fe

Browse files
Update bump_version.yaml (#96)
* Update bump_version.yaml * Suggestions (#98) * Merge branch 'humble' into delihus-patch-1 --------- Co-authored-by: rafal-gorecki <126687345+rafal-gorecki@users.noreply.github.com> Co-authored-by: rafal-gorecki <rafal.gorecki@husarion.com>
1 parent 2bee7c8 commit b05a2fe

File tree

3 files changed

+24
-18
lines changed

3 files changed

+24
-18
lines changed

.github/workflows/bump_version.yaml .github/workflows/bump.yaml

+2-9
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,18 @@
11
---
2-
name: Bump version
2+
name: Bump
33
on:
4+
workflow_call:
45
workflow_dispatch:
56
inputs:
67
name:
78
description: Version to bump (major, minor, patch)
89
default: patch
910
required: true
10-
pull_request:
11-
branches: humble
12-
types: [closed]
1311

1412
jobs:
15-
industrial_ci:
16-
name: Industrial CI
17-
uses: ./.github/workflows/industrial_ci.yaml
18-
1913
get-bump:
2014
name: Get version bump
2115
runs-on: ubuntu-latest
22-
needs: industrial_ci
2316
outputs:
2417
bump: ${{ env.BUMP }}
2518
steps:

.github/workflows/integration.yaml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: CI
3+
4+
on:
5+
push:
6+
7+
jobs:
8+
tests:
9+
name: Tests
10+
uses: ./.github/workflows/tests.yaml
11+
12+
bump:
13+
name: Bump
14+
needs: tests
15+
if: ${{ (github.event_name == 'pull_request' && github.event.pull_request.merged == true) || github.event_name
16+
== 'workflow_dispatch' }}
17+
uses: ./.github/workflows/bump.yaml

.github/workflows/industrial_ci.yaml .github/workflows/tests.yaml

+5-9
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
---
2-
name: Industrial CI
2+
name: Tests
33
on:
4-
workflow_call:
5-
workflow_dispatch:
6-
push:
4+
workflow_call:
5+
workflow_dispatch:
76

87
jobs:
98
black:
@@ -26,13 +25,10 @@ jobs:
2625
- name: Spellcheck
2726
uses: rojopolis/spellcheck-github-actions@0.33.1
2827

29-
ros_industrial_ci:
30-
name: ROS Industrial CI
28+
industrial_ci:
29+
name: Industrial CI
3130
runs-on: ubuntu-22.04
3231
timeout-minutes: 30
33-
needs:
34-
- black
35-
- spellcheck
3632
strategy:
3733
fail-fast: false
3834
matrix:

0 commit comments

Comments
 (0)