Skip to content

Commit

Permalink
Merge pull request #187 from scratchfoundation/fix-cicd-workflow-call
Browse files Browse the repository at this point in the history
Fix workflow call
  • Loading branch information
cwillisf authored Nov 22, 2023
2 parents 6461d94 + 9aafa62 commit 8bea2cc
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/daily-tx-pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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'

0 comments on commit 8bea2cc

Please sign in to comment.