@@ -3,6 +3,9 @@ name: iOS doc screenshots to Percy (nightly)
33on :
44 schedule :
55 - cron : " 0 2 * * *"
6+ push :
7+ branches :
8+ - test/nightly-doc-screenshots
69 workflow_dispatch :
710 inputs :
811 refresh_unstable :
4043 ios :
4144 name : " iOS/Mapbox11/Fabric"
4245 needs : check
43- if : needs.check.outputs.run == 'true'
46+ if : false
4447 uses : ./.github/workflows/ios-actions.yml
4548 with :
4649 NVMRC : ${{ needs.check.outputs.NVMRC }}
5558 name : Percy doc screenshots
5659 needs : [check, ios]
5760 # Uploads whatever was captured, also when the capture failed or timed out
58- if : always() && needs.check.outputs.run == 'true'
61+ if : false
5962 runs-on : ubuntu-latest
6063 steps :
6164 - name : Check for PERCY_TOKEN
@@ -100,15 +103,20 @@ jobs:
100103 needs : [check, ios]
101104 if : always() && needs.check.outputs.run == 'true'
102105 runs-on : ubuntu-latest
106+ permissions :
107+ actions : read
108+ contents : read
103109 env :
104- BRANCH : auto/ example-screenshots
110+ BRANCH : test/auto- example-screenshots
105111 steps :
106112 - uses : actions/download-artifact@v4
107113 id : download
108114 continue-on-error : true
109115 with :
110116 name : doc-screenshots
111117 path : captured
118+ run-id : 39746036267
119+ github-token : ${{ github.token }}
112120
113121 - uses : actions/checkout@v4
114122 if : steps.download.outcome == 'success'
@@ -119,6 +127,7 @@ jobs:
119127 if : steps.download.outcome == 'success'
120128 with :
121129 repository : rnmapbox/maps-docs
130+ ref : test/example-screenshots-base
122131 ssh-key : ${{ secrets.MAPS_DOCS_DEPLOY_KEY }}
123132 path : maps-docs
124133
0 commit comments