Skip to content

Commit 842fc68

Browse files
committed
fix action
1 parent 3da8ca7 commit 842fc68

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/python-build-pages.yml

+13-1
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,21 @@ concurrency:
2222
cancel-in-progress: true
2323

2424
jobs:
25+
setup:
26+
runs-on: ubuntu-latest
27+
outputs:
28+
ingestion_change: ${{ steps.ci-optimize.outputs.ingestion-change == 'true' }}
29+
has_pages_token: ${{ secrets.CLOUDFLARE_ACCOUNT_ID != '' && secrets.CLOUDFLARE_API_TOKEN != '' }}
30+
steps:
31+
- name: Check out the repo
32+
uses: acryldata/sane-checkout-action@v3
33+
- uses: ./.github/actions/ci-optimization
34+
id: ci-optimize
35+
2536
deploy-pages:
37+
needs: setup
2638
runs-on: ubuntu-latest
27-
if: ${{ secrets.CLOUDFLARE_ACCOUNT_ID != '' && secrets.CLOUDFLARE_API_TOKEN != '' }}
39+
if: ${{ needs.setup.outputs.ingestion_change == 'true' && needs.setup.outputs.has_pages_token == 'true' }}
2840

2941
permissions:
3042
contents: read

0 commit comments

Comments
 (0)