Skip to content

Commit 7349738

Browse files
committed
add BRANCH_NAME var
1 parent e9c78dd commit 7349738

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/nightly-build.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
branches:
99
- zhaez/nightly-build
1010

11+
env:
12+
BRANCH_NAME: nightly-dependency-updates
13+
1114
jobs:
1215
update-and-create-pr:
1316
runs-on: ubuntu-latest
@@ -25,13 +28,11 @@ jobs:
2528

2629
- name: Check if nightly branch already exists
2730
run: |
28-
BRANCH_NAME="nightly-dependency-updates"
2931
if git ls-remote --exit-code --heads origin "$BRANCH_NAME"; then
3032
echo "Branch $BRANCH_NAME already exists. Skipping run to avoid conflicts."
3133
echo "Please merge or close the existing PR before the next nightly run."
3234
exit 0
3335
fi
34-
echo "BRANCH_NAME=$BRANCH_NAME" >> $GITHUB_ENV
3536
3637
- name: Configure git and create branch
3738
run: |

0 commit comments

Comments
 (0)