File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 40
40
cancel-in-progress : false
41
41
strategy :
42
42
fail-fast : false
43
- max-parallel : 1
44
43
matrix :
45
44
python-version : >-
46
45
${{ fromJSON( github.event.inputs.python_version || '["3.11", "3.12"]' ) }}
74
73
run : |
75
74
make refresh-pipfilelock-files PYTHON_VERSION=${{ matrix.python-version }} INCLUDE_OPT_DIRS=${{ env.INCLUDE_OPT_DIRS }}
76
75
77
- - name : Push the changes back to the branch
76
+ - name : Pull latest changes safely
78
77
run : |
79
78
git add .
80
- git commit -m "Update Pipfile.lock files by piplock-renewal.yaml action"
79
+ git stash push -m "pre-pull-stash" || true
80
+ git pull --rebase origin ${{ env.BRANCH }}
81
+ git stash pop || true
82
+
83
+ - name : Commit and push changes (if any)
84
+ run : |
85
+ git add .
86
+ git diff --cached --quiet && echo "No changes to commit." || git commit -m "Update Pipfile.lock for Python ${{ matrix.python-version }}"
81
87
git push origin ${{ env.BRANCH }}
You can’t perform that action at this time.
0 commit comments