File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 2121
2222 steps :
2323 - name : When PR ✅ merged - Trigger Readthedocs build
24- if : github.event.pull_request.merged == true
24+ if : github.event_name == 'pull_request_target' && github. event.pull_request.merged == true
2525 env :
2626 RTDS_ADS_PROJECT : https://readthedocs.org/api/v3/projects/accelerated-data-science
2727 RTDS_ADS_TOKEN : ${{ secrets.RTDS_ADS_TOKEN }}
3030 -X POST \
3131 -H "Authorization: Token $RTDS_ADS_TOKEN" $RTDS_ADS_PROJECT/versions/latest/builds/
3232 - name : When tag 🏷️ pushed - Trigger Readthedocs build
33- if : github.event_name != 'pull_request'
33+ if : github.event_name == 'push' && startsWith(github.ref_name, 'v')
3434 env :
3535 RTDS_ADS_PROJECT : https://readthedocs.org/api/v3/projects/accelerated-data-science
3636 RTDS_ADS_TOKEN : ${{ secrets.RTDS_ADS_TOKEN }}
You can’t perform that action at this time.
0 commit comments