Skip to content

Commit 12a4f5c

Browse files
committed
refactor: remove branch manipulation
1 parent 64fb7d7 commit 12a4f5c

File tree

1 file changed

+3
-17
lines changed

1 file changed

+3
-17
lines changed

.github/workflows/update-versions.yml

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ jobs:
99
update-version:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v4
12+
- name: Checkout repository
13+
uses: actions/checkout@v4
1314

1415
- name: Setup Node.js
1516
uses: actions/setup-node@v4
@@ -24,23 +25,8 @@ jobs:
2425
echo "TAG_NAME=v$LATEST_VERSION" >> $GITHUB_ENV
2526
2627
- name: Run update script
27-
run: |
28-
node update-versions.js ${{ env.LATEST_VERSION }}
28+
run: node update-versions.js ${{ env.LATEST_VERSION }}
2929

30-
- name: Ensure branch exists
31-
run: |
32-
git fetch origin
33-
if ! git show-ref --verify --quiet refs/heads/update-lotus-version; then
34-
git checkout -b update-lotus-version
35-
else
36-
git checkout update-lotus-version
37-
fi
38-
39-
- name: Configure Git
40-
run: |
41-
git config user.name "GitHub Actions Bot"
42-
git config user.email "github-actions[bot]@users.noreply.github.com"
43-
4430
- name: Create Pull Request
4531
uses: peter-evans/create-pull-request@v5
4632
with:

0 commit comments

Comments
 (0)