forked from eclipse-zenoh/ci
-
Notifications
You must be signed in to change notification settings - Fork 0
109 lines (100 loc) · 3.79 KB
/
bump-tag-dev.yml
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
name: Bump and tag branch
on:
workflow_dispatch:
inputs:
version:
type: string
description: The new development version (e.g. 0.11.1-dev)
required: true
defaults:
run:
shell: bash
jobs:
bump-and-tag-crates:
name: Bump and tag ${{matrix.dependant}} dev branch (cargo)
runs-on: [self-hosted, ubuntu-22.04]
strategy:
fail-fast: false
matrix:
dependant:
- zenoh
#- zenoh-backend-filesystem
#- zenoh-backend-influxdb
#- zenoh-backend-rocksdb
#- zenoh-backend-s3
#- zenoh-plugin-dds
#- zenoh-plugin-mqtt
#- zenoh-plugin-ros1
#- zenoh-plugin-ros2dds
#- zenoh-plugin-webserver
steps:
- uses: eclipse-zenoh/ci/.github/workflows/branch-bump-tag-crates.yml@main
with:
repo: ${{ matrix.dependant }}
live-run: false
version: ${{ inputs.version }}
bump-deps-version: ${{ inputs.version }}
bump-deps-pattern: 'zenoh.*'
- name: Create pull request version change
id: cpr
# NOTE: If there is a pending PR, this action will simply update it with a forced push.
uses: peter-evans/create-pull-request@v6
with:
title: Bump dev version to ${{ inputs.version }}`
body: |
This pull request updates ${{ matrix.dependant }}'s to the new development line.
- **workflow**: [${{ github.run_id}}](https://github.com/eclipse-zenoh/ci/actions/runs/${{ github.run_id }})
commit-message: "build: Bump dev version"
committer: eclipse-zenoh-bot <[email protected]>
author: eclipse-zenoh-bot <[email protected]>
branch: eclipse-zenoh-bot/bump-dev-version-${{ matrix.dependant }}
delete-branch: true
labels: internal
draft: true
token: ${{ secrets.BOT_TOKEN_WORKFLOW }}
bump-and-tag-bash:
name: Bump and tag ${{matrix.dependant}} dev branch (non-cargo)
runs-on: [self-hosted, ubuntu-22.04]
strategy:
fail-fast: false
matrix:
dependant:
- zenoh-c
#- zenoh-cpp
#- zenoh-java
#- zenoh-kotlin
#- zenoh-pico
#- zenoh-python
steps:
- name: Checkout ${{ matrix.dependant }}
uses: actions/checkout@v4
with:
repository: eclipse-zenoh/${{ matrix.dependant }}
ref: main
submodules: true
token: ${{ secrets.BOT_TOKEN_WORKFLOW }}
- name: Bump and tag project
run: bash ci/scripts/bump-and-tag.bash
env:
VERSION: ${{ inputs.version }}
BUMP_DEPS_VERSION: ${{ inputs.version }}
BUMP_DEPS_PATTERN: 'zenoh.*'
GIT_USER_NAME: eclipse-zenoh-bot
GIT_USER_EMAIL: [email protected]
- name: Create pull request version change
id: cpr
# NOTE: If there is a pending PR, this action will simply update it with a forced push.
uses: peter-evans/create-pull-request@v6
with:
title: Bump dev version to ${{ inputs.version }}`
body: |
This pull request updates ${{ matrix.dependant }}'s to the new development line.
- **workflow**: [${{ github.run_id}}](https://github.com/eclipse-zenoh/ci/actions/runs/${{ github.run_id }})
commit-message: "build: Bump dev version"
committer: eclipse-zenoh-bot <[email protected]>
author: eclipse-zenoh-bot <[email protected]>
branch: eclipse-zenoh-bot/bump-dev-version-${{ matrix.dependant }}
delete-branch: true
labels: internal
draft: true
token: ${{ secrets.BOT_TOKEN_WORKFLOW }}