Skip to content

Commit 2bfb1e6

Browse files
author
Anton Benkevich
committed
Definitions Update test
Filter automatic merge if not auto update branch
1 parent dda6121 commit 2bfb1e6

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

.github/workflows/stage1_merge_automatic_prs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on: pull_request
77

88
jobs:
99
test:
10+
if: contains(github.event.head_commit.message, 'auto-update')
1011
runs-on: ubuntu-latest
1112
strategy:
1213
matrix:
@@ -27,6 +28,7 @@ jobs:
2728
python3 -m unittest
2829
python3 scripts/validate_my_definition.py -d alsdkdefs/apis/assets_query/
2930
merge:
31+
if: contains(github.head_ref, 'auto-update')
3032
needs: test
3133
runs-on: ubuntu-latest
3234
steps:

.github/workflows/stage2_create_automatic_release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010

1111
jobs:
1212
github_release:
13+
if: contains(github.event.head_commit.message, 'Definitions Update')
1314
runs-on: ubuntu-latest
1415
steps:
1516
- uses: actions/checkout@v2

.github/workflows/test_all.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
tags-ignore:
99
- 'v[0-9]+.[0-9]+.[0-9]+'
1010
branches-ignore:
11-
- '**auto-update-**'
11+
- 'refs/heads/auto-update**'
1212
pull_request:
1313

1414
jobs:

0 commit comments

Comments
 (0)