Skip to content

Commit 40d9e76

Browse files
committed
jobs based on commit msg
1 parent 7f7e58d commit 40d9e76

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,17 @@ permissions:
77
contents: write
88

99
jobs:
10-
check-weblate-commit:
10+
# runs on weblate commit
11+
weblate-commit-build:
12+
if: ${{ contains(github.event.head_commit.message, 'Translated using Weblate') }}
1113
runs-on: ubuntu-latest
1214
steps:
13-
- name: check commit message and cancel self - if Weblate Commit
14-
if: contains(github.event.head_commit.message, 'Translated using Weblate')
15-
uses: andymckay/[email protected]
16-
17-
- name: TODO - start delayed (15mins?) full build
18-
if: contains(github.event.head_commit.message, 'Translated using Weblate')
19-
run: echo "dummy"
20-
21-
- name: busy wait until cancel - if weblate commit
22-
if: contains(github.event.head_commit.message, 'Translated using Weblate')
23-
run: |
24-
echo "busy wait"
25-
sleep inf
26-
15+
- name: TODO - start full build (delayed)
16+
run: echo "TODO - start delayed full build, maybe 15mins?"
17+
18+
# on regular commit (auto excludes self-commited pot/po files)
2719
full-build:
28-
needs: [ check-weblate-commit ]
20+
if: ${{ ! contains(github.event.head_commit.message, 'Translated using Weblate') }}
2921
concurrency:
3022
group: ${{ github.ref }}
3123
cancel-in-progress: true

0 commit comments

Comments
 (0)