File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -279,15 +279,17 @@ jobs:
279279 limit-access-to-actor : false
280280 - name : Save git diff
281281 if : always() && inputs.artifact-name != '' && inputs.artifact-path == ''
282- run : git add -A && git diff --binary --staged > changes.patch
282+ run : |
283+ git add -A && git diff --binary --staged > changes.patch
284+ [ -s changes.patch ] || rm -f changes.patch
283285 - name : Upload artifact
284286 if : always() && inputs.artifact-name != ''
285287 uses : actions/upload-artifact@v5
286288 with :
287289 name : ${{ inputs.artifact-name }}
288290 path : ${{ inputs.artifact-path || 'changes.patch' }}
289291 retention-days : 6
290- if-no-files-found : ${{ inputs.artifact-path != '' && 'error' || 'warn ' }}
292+ if-no-files-found : ${{ inputs.artifact-path != '' && 'error' || 'ignore ' }}
291293 - name : Check disk space
292294 if : always()
293295 shell : bash
Original file line number Diff line number Diff line change @@ -31,19 +31,24 @@ jobs:
3131 with :
3232 token : ${{ secrets.SELENIUM_CI_TOKEN }}
3333 - name : Download patch
34+ id : download
3435 uses : actions/download-artifact@v4
3536 with :
3637 name : pinned-browsers
38+ continue-on-error : true
3739 - name : Apply Patch
40+ if : steps.download.outcome == 'success'
3841 run : |
3942 git apply --index changes.patch
4043 rm changes.patch
4144 - name : Create Pull Request
45+ if : steps.download.outcome == 'success'
4246 uses : peter-evans/create-pull-request@v6
4347 with :
4448 token : ${{ secrets.SELENIUM_CI_TOKEN }}
4549 commit-message : " Update pinned browser versions"
4650 author : Selenium CI Bot <selenium-ci@users.noreply.github.com>
51+ base : trunk
4752 title : " [build] Automated Browser Version Update"
4853 body : |
4954 This is an automated pull request to update pinned browsers and drivers
You can’t perform that action at this time.
0 commit comments