Skip to content

Commit 637a6bc

Browse files
authored
Fix update branch names (#144)
PR #118 accidentally removed the `time` variable that was being used in update branch names. As a result, the update branch was always called "update-". Restore the variable to get different branch names for different updates.
1 parent 582f801 commit 637a6bc

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/autoupdate.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
# If the current HEAD is different then a commit was made, so make a PR.
3535
- run: |
3636
if [ "${{ github.sha }}" != $(git rev-parse HEAD) ]; then
37+
time=`date '+%Y-%m-%d'`
3738
branch=update-$time
3839
git checkout -b $branch
3940
git push origin $branch:$branch

0 commit comments

Comments
 (0)