ci: run CI/CD workflow if TX Pull makes changes

This commit is contained in:
Christopher Willis-Ford 2023-11-15 14:22:36 -08:00
parent 4277c674f3
commit 931794d116
2 changed files with 6 additions and 0 deletions

View file

@ -2,6 +2,7 @@ name: CI/CD
on:
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
concurrency:

View file

@ -47,7 +47,12 @@ jobs:
git add .
if git diff --cached --exit-code --quiet; then
echo "Nothing to commit."
echo "::set-env name=MADE_CHANGES::false"
else
git commit -m "pull new editor translations from Transifex"
git push origin HEAD:master
echo "::set-env name=MADE_CHANGES::true"
fi
- name: Start CI/CD workflow if changes were made
if: env.MADE_CHANGES == 'true'
uses: ./.github/workflows/ci-cd.yml