Skip to content

Commit 542ca70

Browse files
fix: rename created branch, as we hit the issue with more than just updated lock files
1 parent 8cd91c5 commit 542ca70

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/build.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ jobs:
110110
run: |
111111
if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then
112112
PR_NUMBER="${{ github.event.pull_request.number }}"
113-
BRANCH="lock-file-maintenance-${PR_NUMBER}"
113+
BRANCH="dist-updated-${PR_NUMBER}"
114114
115115
echo "Detected uncommitted changes after build. Checking in changes on branch: ${BRANCH}"
116116
git checkout -b ${BRANCH}
@@ -124,17 +124,17 @@ jobs:
124124
125125
echo "Committing changes in dist/"
126126
git add dist/
127-
git commit --message "chore: changes caused by updating lock files. See #${PR_NUMBER}"
127+
git commit --message "chore: commiting changes in dist/. See #${PR_NUMBER}"
128128
129-
# Remove GitHub's merging the tip of lock-file-maintenance branch into main's commit
129+
# Remove GitHub's merging the tip of dist-updated branch into main's commit
130130
# it's not needed as we require a branch to up-to-date with main
131131
git rebase origin/main --autosquash
132132
133133
echo "Pushing branch"
134134
git push --force --set-upstream origin HEAD
135135
136136
echo "Creating PR"
137-
gh pr create --base main --head ${BRANCH} --title "chore(deps): rebuilding because of lock file maintenance" --fill
137+
gh pr create --base main --head ${BRANCH} --title "chore(deps): rebuilding because files in dist have updated" --fill
138138
139139
exit 1
140140
fi

0 commit comments

Comments
 (0)