Skip to content

Commit

Permalink
ci: change github action trigger rules for release/* and rc*/* br…
Browse files Browse the repository at this point in the history
…anches (#779)

* ci: change the `release-sims` trigger rule when add `release` tag

Signed-off-by: zemyblue <zemyblue@gmail.com>

* ci: remove pull_requests trigger rule in `release-sims`

Signed-off-by: zemyblue <zemyblue@gmail.com>

* ci: change trigger rule in `release-sims`

Signed-off-by: zemyblue <zemyblue@gmail.com>

* ci: change trigger rule in `release-sims`

Signed-off-by: zemyblue <zemyblue@gmail.com>

* ci: change trigger rule in `release-sims`

Signed-off-by: zemyblue <zemyblue@gmail.com>

* chore: add changelog.

Signed-off-by: zemyblue <zemyblue@gmail.com>

* ci: change the triggering rule of `release-sims`

Signed-off-by: zemyblue <zemyblue@gmail.com>

* ci: Add github action in rc*/* and release/* branches like main branch

Signed-off-by: zemyblue <zemyblue@gmail.com>

* fix: ci filtering rule of `release-sims`

Signed-off-by: zemyblue <zemyblue@gmail.com>

* chore: change changelog

Signed-off-by: zemyblue <zemyblue@gmail.com>

Signed-off-by: zemyblue <zemyblue@gmail.com>
  • Loading branch information
zemyblue committed Nov 3, 2022
1 parent 7e71801 commit c50f198
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
pull_request:
branches:
- main
- rc*/*
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+" # Push events to matching v*, i.e. v1.0, v20.15.10
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
push:
branches:
- main
- rc*/*
- release/*
jobs:
golangci:
name: golangci-lint
Expand Down
16 changes: 11 additions & 5 deletions .github/workflows/release-sims.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
name: Release Sims
# Release Sims workflow runs long-lived (multi-seed & large block size) simulations
# This workflow only runs on a pull request when the branch contains rc** (rc1/vX.X.x)
# This workflow only runs on a pull request added `release` label
on:
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
branches:
- "rc**"
- "release/*"
- main
- rc*/*
- release/*

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

build:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'skip-sims')"
if: "!contains(github.event.head_commit.message, 'skip-sims') && contains(github.event.pull_request.labels.*.name, 'release')"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3.3.0
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/sims.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
push:
branches:
- main
- rc*/*

jobs:
cleanup-runs:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
push:
branches:
- main
- rc*/*
- release/*
jobs:
cleanup-runs:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
* (cli) [\#773](https://github.com/line/lbm-sdk/pull/773) guide users to use generate-only in messages for x/foundation authority

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

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

0 comments on commit c50f198

Please sign in to comment.