Skip to content

Commit 8a7576a

Browse files
authored
chore: reset fork build dist base branch (#10)
1 parent 627c9d3 commit 8a7576a

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

.github/workflows/release-please.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,31 @@ on:
33
branches:
44
- main
55
name: build and release-please
6+
env:
7+
ACTION_NAME: deploy-cloud-functions
68
jobs:
9+
update-fork:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: sync fork
13+
uses: actions/checkout@v2
14+
with:
15+
repository: google-github-actions-bot/${{env.ACTION_NAME}}
16+
token: ${{ secrets.ACTIONS_BOT_TOKEN }}
17+
- run: |-
18+
git remote add upstream https://github.com/${GITHUB_REPOSITORY}
19+
git fetch upstream
20+
git checkout main
21+
git reset --hard upstream/main
22+
git rebase upstream/main
23+
git push origin main -f
724
build:
8-
env:
9-
ACTION_NAME: deploy-cloud-functions
25+
needs: [update-fork]
1026
runs-on: ubuntu-latest
1127
steps:
1228
- uses: actions/checkout@v2
1329
with:
1430
fetch-depth: 0
15-
- run: git pull
1631
- name: install
1732
run: npm install
1833
- name: build

0 commit comments

Comments
 (0)