Skip to content

Commit f248350

Browse files
committed
ci: auto push to latest
1 parent 8181e97 commit f248350

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

.github/workflows/integration.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,16 @@ jobs:
2020
matrix:
2121
node-version: [18.x]
2222
steps:
23+
- uses: actions/checkout@v3
24+
with:
25+
fetch-depth: 0
26+
- name: Push to next
27+
if: github.ref == 'refs/heads/latest'
28+
run: sh .github/workflows/push_to_next.sh
2329
- name: Use Node.js ${{ matrix.node-version }}
2430
uses: actions/setup-node@v3
2531
with:
2632
node-version: ${{ matrix.node-version }}
27-
- uses: actions/checkout@v3
28-
with:
29-
fetch-depth: 0
3033
- uses: bahmutov/npm-install@v1
3134
- name: Test
3235
run: yarn test

.github/workflows/push_to_next.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
3+
git config --global user.email "${{secrets.EMAIL_ADDRESS}}"
4+
git config --global user.name "${{secrets.GIT_NAME}}"
5+
git checkout -b next
6+
git push origin next -f

0 commit comments

Comments
 (0)