diff --git a/.github/workflows/daily-tx-pull.yml b/.github/workflows/daily-tx-pull.yml index b1e482bb7..5fb815122 100644 --- a/.github/workflows/daily-tx-pull.yml +++ b/.github/workflows/daily-tx-pull.yml @@ -20,6 +20,9 @@ jobs: daily-tx-pull: runs-on: ubuntu-latest + outputs: + MADE_CHANGES: ${{ steps.commit.outputs.MADE_CHANGES }} + env: # Organization-wide secrets TX_TOKEN: ${{ secrets.TX_TOKEN }} @@ -52,8 +55,9 @@ jobs: else git commit -m "pull new editor translations from Transifex" echo "MADE_CHANGES=true" >> "$GITHUB_OUTPUT" - git push origin HEAD:master + git push fi - - name: Start CI/CD workflow if changes were made - if: steps.commit.outputs.MADE_CHANGES == 'true' - uses: ./.github/workflows/ci-cd.yml + call-ci-cd: + uses: ./.github/workflows/ci-cd.yml + needs: daily-tx-pull + if: needs.daily-tx-pull.outputs.MADE_CHANGES == 'true'