ci: use separate job to call ci-cd workflow

This commit is contained in:
Christopher Willis-Ford 2023-11-22 11:00:42 -08:00
parent d23af54379
commit 10905d5ee8

View file

@ -20,6 +20,9 @@ jobs:
daily-tx-pull: daily-tx-pull:
runs-on: ubuntu-latest runs-on: ubuntu-latest
outputs:
MADE_CHANGES: ${{ steps.commit.outputs.MADE_CHANGES }}
env: env:
# Organization-wide secrets # Organization-wide secrets
TX_TOKEN: ${{ secrets.TX_TOKEN }} TX_TOKEN: ${{ secrets.TX_TOKEN }}
@ -54,6 +57,7 @@ jobs:
echo "MADE_CHANGES=true" >> "$GITHUB_OUTPUT" echo "MADE_CHANGES=true" >> "$GITHUB_OUTPUT"
git push origin HEAD:master git push origin HEAD:master
fi fi
- name: Start CI/CD workflow if changes were made call-ci-cd:
if: steps.commit.outputs.MADE_CHANGES == 'true' uses: ./.github/workflows/ci-cd.yml
uses: ./.github/workflows/ci-cd.yml needs: daily-tx-pull
if: needs.daily-tx-pull.outputs.MADE_CHANGES == 'true'