mirror of
https://github.com/scratchfoundation/scratch-l10n.git
synced 2024-12-22 13:42:30 -05:00
ci: run CI/CD workflow if TX Pull makes changes
This commit is contained in:
parent
4277c674f3
commit
931794d116
2 changed files with 6 additions and 0 deletions
1
.github/workflows/ci-cd.yml
vendored
1
.github/workflows/ci-cd.yml
vendored
|
@ -2,6 +2,7 @@ name: CI/CD
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push: # Runs whenever a commit is pushed to the repository
|
push: # Runs whenever a commit is pushed to the repository
|
||||||
|
workflow_call: # Allows another workflow to call this one
|
||||||
workflow_dispatch: # Allows you to run this workflow manually from the Actions tab
|
workflow_dispatch: # Allows you to run this workflow manually from the Actions tab
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
|
|
5
.github/workflows/daily-tx-pull.yml
vendored
5
.github/workflows/daily-tx-pull.yml
vendored
|
@ -47,7 +47,12 @@ jobs:
|
||||||
git add .
|
git add .
|
||||||
if git diff --cached --exit-code --quiet; then
|
if git diff --cached --exit-code --quiet; then
|
||||||
echo "Nothing to commit."
|
echo "Nothing to commit."
|
||||||
|
echo "::set-env name=MADE_CHANGES::false"
|
||||||
else
|
else
|
||||||
git commit -m "pull new editor translations from Transifex"
|
git commit -m "pull new editor translations from Transifex"
|
||||||
git push origin HEAD:master
|
git push origin HEAD:master
|
||||||
|
echo "::set-env name=MADE_CHANGES::true"
|
||||||
fi
|
fi
|
||||||
|
- name: Start CI/CD workflow if changes were made
|
||||||
|
if: env.MADE_CHANGES == 'true'
|
||||||
|
uses: ./.github/workflows/ci-cd.yml
|
||||||
|
|
Loading…
Reference in a new issue