File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 99
1010jobs :
1111 add-extend-path :
12- if : contains(github.event.pull_request.title, 'Update SDK - Generate')
12+ if : github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && contains(github.event.pull_request.title, 'Update SDK - Generate') )
1313 runs-on : ubuntu-latest
1414 permissions :
1515 contents : write
1818 steps :
1919 - uses : actions/checkout@v4
2020 with :
21- ref : ${{ github.head_ref }}
21+ ref : ${{ github.head_ref || github.ref_name }}
2222 fetch-depth : 0
2323
2424 - name : Patch glean/__init__.py with extend_path
3434
3535 git add src/glean/__init__.py
3636 git commit -m "ci: ensure extend_path lines in glean/__init__.py" || echo "No changes to commit"
37- git push origin HEAD:${{ github.head_ref }}
37+ git push origin HEAD:${{ github.head_ref || github.ref_name }}
You can’t perform that action at this time.
0 commit comments