Skip to content

Commit

Permalink
skip on weblate commit
Browse files Browse the repository at this point in the history
  • Loading branch information
daringer committed Nov 24, 2024
1 parent e433e94 commit 22aec9a
Showing 1 changed file with 27 additions and 5 deletions.
32 changes: 27 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,38 @@ on:
permissions:
contents: write

concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

jobs:
check-weblate-commit:
runs-on: ubuntu-latest
steps:
- name: check commit message and cancel self - if Weblate Commit
if: contains(github.event.head_commit.message, 'Translated using Weblate')
uses: andymckay/[email protected]

- name: TODO - start delayed (15mins?) full build
if: contains(github.event.head_commit.message, 'Translated using Weblate')
run: echo "dummy"

- name: busy wait until cancel - if weblate commit
if: contains(github.event.head_commit.message, 'Translated using Weblate')
run: |
echo "busy wait"
sleep inf
full-build:
needs: [ check-weblate-commit ]
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

runs-on: ubuntu-latest
container:
image: sphinxdoc/sphinx
#options: --user 1001 (only if we don't need apt-get)

env:
MAIN_LANGS: en
OTHER_LANGS: es fr ru nl it ja el bg da et fi lv lt pl pt ro sv sk sl cs hu zh_CN
OTHER_LANGS: de es fr ru nl it ja el bg da et fi lv lt pl pt ro sv sk sl cs hu zh_CN

steps:
- name: Install git
Expand All @@ -37,6 +56,7 @@ jobs:
mkdir -p dist/en
mkdir -p build/en/doctrees
sphinx-build -j auto -b html -D language=en -d build/en/doctrees source dist/en
# remove/cleanup dist/en/_sources
- name: upload quick build artifact
id: upload-quick
Expand Down Expand Up @@ -93,8 +113,10 @@ jobs:
mkdir -p dist/$lang
mkdir -p build/$lang/doctrees
sphinx-build -j auto -b html -D language=$lang -d build/$lang/doctrees source dist/$lang
# remove/cleanup dist/$lang/_sources
done
- name: upload full build artifact
id: upload-full
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 22aec9a

Please sign in to comment.