Skip to content

Commit c50f198

Browse files
authored
ci: change github action trigger rules for release/* and rc*/* branches (#779)
* ci: change the `release-sims` trigger rule when add `release` tag Signed-off-by: zemyblue <[email protected]> * ci: remove pull_requests trigger rule in `release-sims` Signed-off-by: zemyblue <[email protected]> * ci: change trigger rule in `release-sims` Signed-off-by: zemyblue <[email protected]> * ci: change trigger rule in `release-sims` Signed-off-by: zemyblue <[email protected]> * ci: change trigger rule in `release-sims` Signed-off-by: zemyblue <[email protected]> * chore: add changelog. Signed-off-by: zemyblue <[email protected]> * ci: change the triggering rule of `release-sims` Signed-off-by: zemyblue <[email protected]> * ci: Add github action in rc*/* and release/* branches like main branch Signed-off-by: zemyblue <[email protected]> * fix: ci filtering rule of `release-sims` Signed-off-by: zemyblue <[email protected]> * chore: change changelog Signed-off-by: zemyblue <[email protected]> Signed-off-by: zemyblue <[email protected]>
1 parent 7e71801 commit c50f198

File tree

6 files changed

+18
-5
lines changed

6 files changed

+18
-5
lines changed

.github/workflows/docker.yml

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ on:
33
pull_request:
44
branches:
55
- main
6+
- rc*/*
67
push:
78
tags:
89
- "v[0-9]+.[0-9]+.[0-9]+" # Push events to matching v*, i.e. v1.0, v20.15.10

.github/workflows/lint.yml

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99
push:
1010
branches:
1111
- main
12+
- rc*/*
13+
- release/*
1214
jobs:
1315
golangci:
1416
name: golangci-lint

.github/workflows/release-sims.yml

+11-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
name: Release Sims
22
# Release Sims workflow runs long-lived (multi-seed & large block size) simulations
3-
# This workflow only runs on a pull request when the branch contains rc** (rc1/vX.X.x)
3+
# This workflow only runs on a pull request added `release` label
44
on:
55
pull_request:
6+
types:
7+
- opened
8+
- synchronize
9+
- reopened
10+
- labeled
611
branches:
7-
- "rc**"
8-
- "release/*"
12+
- main
13+
- rc*/*
14+
- release/*
915

1016
jobs:
1117
cleanup-runs:
@@ -14,11 +20,11 @@ jobs:
1420
- uses: rokroskar/workflow-run-cleanup-action@master
1521
env:
1622
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
17-
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/main'"
23+
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/main' && contains(github.event.pull_request.labels.*.name, 'release')"
1824

1925
build:
2026
runs-on: ubuntu-latest
21-
if: "!contains(github.event.head_commit.message, 'skip-sims')"
27+
if: "!contains(github.event.head_commit.message, 'skip-sims') && contains(github.event.pull_request.labels.*.name, 'release')"
2228
steps:
2329
- uses: actions/checkout@v3
2430
- uses: actions/[email protected]

.github/workflows/sims.yml

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
push:
99
branches:
1010
- main
11+
- rc*/*
1112

1213
jobs:
1314
cleanup-runs:

.github/workflows/test.yml

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
push:
88
branches:
99
- main
10+
- rc*/*
11+
- release/*
1012
jobs:
1113
cleanup-runs:
1214
runs-on: ubuntu-latest

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
4848
* (cli) [\#773](https://github.com/line/lbm-sdk/pull/773) guide users to use generate-only in messages for x/foundation authority
4949

5050
### Build, CI
51+
* (ci) [\#779](https://github.com/line/lbm-sdk/pull/779) change github action trigger rules for `release/*` and `rc*/*` branches
5152

5253
### Document Updates
5354
* (docs) [\#766](https://github.com/line/lbm-sdk/pull/766) fix submit-proposal command on x/foundation

0 commit comments

Comments
 (0)