File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed
Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -23,19 +23,20 @@ jobs:
2323 fetch-depth : 0
2424 token : ${{ secrets.GITHUB_TOKEN }}
2525
26- - name : Check if nightly branch already exists
27- run : |
28- if git ls-remote --exit-code --heads origin "$BRANCH_NAME"; then
29- echo "Branch $BRANCH_NAME already exists. Skipping run to avoid conflicts."
30- echo "Please merge or close the existing PR before the next nightly run."
31- exit 1
32- fi
33-
3426 - name : Configure git and create branch
3527 run : |
3628 git config --local user.email "[email protected] " 3729 git config --local user.name "GitHub Action"
38- git checkout -b "$BRANCH_NAME"
30+
31+ - name : Check out dependency update branch
32+ run : |
33+ if git ls-remote --exit-code --heads origin "$BRANCH_NAME"; then
34+ echo "Branch $BRANCH_NAME already exists, checking out..."
35+ git checkout "$BRANCH_NAME"
36+ else
37+ echo "Branch $BRANCH_NAME does not exist, creating new branch..."
38+ git checkout -b "$BRANCH_NAME"
39+ fi
3940
4041 - name : Set up Python
4142 uses : actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
You can’t perform that action at this time.
0 commit comments