Skip to content

Commit

Permalink
[ci]: Update iroha2 main branch workflows triggers (#4452)
Browse files Browse the repository at this point in the history
Signed-off-by: BAStos525 <[email protected]>
  • Loading branch information
BAStos525 authored Apr 16, 2024
1 parent 6285d86 commit 8137d65
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/iroha2-dev-pr-static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: I2::Dev::Static

on:
pull_request:
branches: [iroha2-dev]
branches: [main]
paths:
- '**.rs'
- '**.json'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/iroha2-dev-pr-title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: I2::Dev::Title

on:
pull_request_target:
branches: [iroha2-dev]
branches: [main]
types: [opened, edited, reopened]

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/iroha2-dev-pr-wasm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: I2::Dev::Wasm

on:
pull_request:
branches: [iroha2-dev]
branches: [main]
paths:
- 'data_model/**.rs'
- 'data_model/**.yml'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/iroha2-dev-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: I2::Dev::Tests

on:
pull_request:
branches: [iroha2-dev]
branches: [main]
paths:
- '**.rs'
- '**.json'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/iroha2-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: I2::Dev::Publish

on:
push:
branches: [iroha2-dev]
branches: [main]

env:
CARGO_TERM_COLOR: always
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/iroha2-no-incorrect-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: I2::CI::check_for_incorrect_images
on:
push:
branches:
- iroha2-dev
- iroha2-stable
- main
- stable

jobs:
check:
Expand All @@ -17,9 +17,9 @@ jobs:
- uses: actions/checkout@v3
- name: Install dependencies
run: pip install -r .github/scripts/ci_test/requirements.txt --no-input
- name: Check containers on iroha2-stable branch
if: github.base_ref == 'iroha2-stable'
- name: Check containers on iroha2 stable branch
if: github.base_ref == 'stable'
run: python .github/scripts/ci_test/ci_image_scan.py --allow iroha2:stable -- docker-compose*.yml
- name: Check containers on iroha2-dev branch
if: github.base_ref == 'iroha2-dev'
- name: Check containers on iroha2 main branch
if: github.base_ref == 'main'
run: python .github/scripts/ci_test/ci_image_scan.py --allow iroha2:dev -- docker-compose*.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: I2::Dev::Tests::UI
name: I2::Tests::UI

on:
pull_request:
branches: [iroha2-dev, iroha2-stable, iroha2-lts]
branches: [main, stable, lts]
paths:
- '**/derive/**.rs'
- '**/tests/ui.rs'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/iroha2-release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: I2::Release::Tests

on:
pull_request:
branches: [ iroha2-stable, iroha2-lts ]
branches: [stable, lts]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/iroha2-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: I2::Release::Publish

on:
push:
branches: [iroha2-stable, iroha2-lts]
branches: [stable, lts]

env:
CARGO_TERM_COLOR: always
Expand All @@ -20,9 +20,7 @@ jobs:
install: true
- name: Get tag from branch name
run: |
BRANCH=${{ github.ref_name }}
PREFIX='iroha2-'
TAG=${BRANCH#$PREFIX}
TAG=${{ github.ref_name }}
echo "TAG=$TAG" >>$GITHUB_ENV
- name: Get the release from a branch name
run: |
Expand Down

0 comments on commit 8137d65

Please sign in to comment.