mirror of
https://github.com/scratchfoundation/scratch-l10n.git
synced 2024-12-22 13:42:30 -05:00
ci: use separate job to call ci-cd workflow
This commit is contained in:
parent
d23af54379
commit
10905d5ee8
1 changed files with 7 additions and 3 deletions
8
.github/workflows/daily-tx-pull.yml
vendored
8
.github/workflows/daily-tx-pull.yml
vendored
|
@ -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 }}
|
||||
|
@ -54,6 +57,7 @@ jobs:
|
|||
echo "MADE_CHANGES=true" >> "$GITHUB_OUTPUT"
|
||||
git push origin HEAD:master
|
||||
fi
|
||||
- name: Start CI/CD workflow if changes were made
|
||||
if: steps.commit.outputs.MADE_CHANGES == 'true'
|
||||
call-ci-cd:
|
||||
uses: ./.github/workflows/ci-cd.yml
|
||||
needs: daily-tx-pull
|
||||
if: needs.daily-tx-pull.outputs.MADE_CHANGES == 'true'
|
||||
|
|
Loading…
Reference in a new issue