diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 354e39fe..e6d6146f 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -4,6 +4,11 @@ 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 + workflow_run: # Allows you to run this workflow when another workflow is run + types: [completed] + workflows: + - "Daily TX Pull" + - "Daily Help Update" concurrency: group: "${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}" @@ -18,8 +23,6 @@ permissions: jobs: build-and-deploy: runs-on: ubuntu-latest - env: - TRIGGER_DEPLOY: ${{ startsWith(github.ref, 'refs/heads/master') }} steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 diff --git a/.github/workflows/daily-tx-pull.yml b/.github/workflows/daily-tx-pull.yml index 11bf35b2..45aeeb37 100644 --- a/.github/workflows/daily-tx-pull.yml +++ b/.github/workflows/daily-tx-pull.yml @@ -20,9 +20,6 @@ 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 }} @@ -50,15 +47,8 @@ jobs: git config --global user.name $(git log --pretty=format:"%an" -n1) git add . if git diff --cached --exit-code --quiet; then - echo "MADE_CHANGES=false" >> "$GITHUB_OUTPUT" echo "Nothing to commit." else git commit -m "fix: pull new editor translations from Transifex" - echo "MADE_CHANGES=true" >> "$GITHUB_OUTPUT" git push fi - call-ci-cd: - needs: daily-tx-pull - if: needs.daily-tx-pull.outputs.MADE_CHANGES == 'true' - uses: ./.github/workflows/ci-cd.yml - secrets: inherit