Skip to content

Commit 4515746

Browse files
committed
patch: fetch branch for release ci
1 parent 4693f95 commit 4515746

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ jobs:
77
if: "!contains(github.event.head_commit.message, 'ci skip')"
88
steps:
99
- name: Checkout
10-
uses: actions/checkout@master
11-
with:
12-
fetch-depth: 1
10+
uses: actions/checkout@v2
1311

1412
- name: Install
1513
run: npm ci

.github/workflows/release.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Checkout
11-
uses: actions/checkout@master
12-
with:
13-
fetch-depth: 1
11+
uses: actions/checkout@v2
1412

1513
- name: Install
1614
run: npm ci
@@ -21,9 +19,10 @@ jobs:
2119
run: |
2220
git config --global user.name "Beep boop bot"
2321
git config --global user.email "alexieyizhe@gmail.com"
22+
git fetch origin release
2423
2524
npm run build
2625
2726
npm version $VERSION_TAG --git-tag-version=false
2827
git commit -am "Release version $VERSION_TAG [ci skip]"
29-
git push -u origin release
28+
git push origin release

0 commit comments

Comments
 (0)