File tree Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Original file line number Diff line number Diff line change 3
3
branches :
4
4
- main
5
5
name : build and release-please
6
+ env :
7
+ ACTION_NAME : deploy-cloud-functions
6
8
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
7
24
build :
8
- env :
9
- ACTION_NAME : deploy-cloud-functions
25
+ needs : [update-fork]
10
26
runs-on : ubuntu-latest
11
27
steps :
12
28
- uses : actions/checkout@v2
13
29
with :
14
30
fetch-depth : 0
15
- - run : git pull
16
31
- name : install
17
32
run : npm install
18
33
- name : build
You can’t perform that action at this time.
0 commit comments