Skip to content

Commit a4574a9

Browse files
authored
Update main.yml
1 parent 8da3776 commit a4574a9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ jobs:
5353
fetch-depth: 0
5454
- name: Install jstyleson
5555
run: pip3 install jstyleson
56+
5657
- name: Update size
5758
run: python3 .github/update_size.py
5859

@@ -65,7 +66,8 @@ jobs:
6566
branch_name=$GITHUB_HEAD_REF
6667
fi
6768
echo "branch_name=$branch_name" >> $GITHUB_ENV
68-
echo "Switched to branch: $branch_name"
69+
git checkout $branch_name || git checkout -b $branch_name
70+
echo "Checked out branch: $branch_name"
6971
7072
- name: Commit changes to the correct branch
7173
uses: EndBug/add-and-commit@v9

0 commit comments

Comments
 (0)