diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 34903108..062cbd20 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -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: diff --git a/.github/workflows/daily-tx-pull.yml b/.github/workflows/daily-tx-pull.yml index a07fef63..380e2264 100644 --- a/.github/workflows/daily-tx-pull.yml +++ b/.github/workflows/daily-tx-pull.yml @@ -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