Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Commit 7c620a7

Browse files
authored
Merge pull request #38 from findy-network/use-app-token-for-merge
Use app token for merge to master.
2 parents e38e213 + fbedb57 commit 7c620a7

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

.github/workflows/on-release.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: checkout
11-
uses: actions/checkout@v2
11+
uses: actions/checkout@v4
1212
- name: test
1313
run: echo "implement e2e tests"
1414
publish:
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: Checkout
20-
uses: actions/checkout@v2
20+
uses: actions/checkout@v4
2121
- name: Release
2222
uses: softprops/action-gh-release@v1
2323
if: startsWith(github.ref, 'refs/tags/')
@@ -33,10 +33,17 @@ jobs:
3333
needs: e2e
3434
runs-on: ubuntu-latest
3535
steps:
36+
- name: Generate a token
37+
id: generate_token
38+
uses: actions/create-github-app-token@v1
39+
with:
40+
app-id: ${{ secrets.AGENCY_RELEASER_ID }}
41+
private-key: ${{ secrets.AGENCY_RELEASER_KEY }}
3642
- name: checkout
37-
uses: actions/checkout@v2
43+
uses: actions/checkout@v4
3844
with:
3945
ref: master
46+
token: ${{ steps.generate_token.outputs.token }}
4047
- name: merge
4148
run: |
4249
git fetch --tags origin

.github/workflows/test.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ jobs:
55
runs-on: ubuntu-latest
66
steps:
77
- name: setup
8-
uses: actions/setup-go@v2
8+
uses: actions/setup-go@v5
99
with:
10-
go-version: 1.16.x
10+
go-version: 1.21.x
1111
- name: checkout
12-
uses: actions/checkout@v2
12+
uses: actions/checkout@v4
1313
- name: Install Protoc
14-
uses: arduino/setup-protoc@v1
14+
uses: arduino/setup-protoc@v3
1515
- name: add go-gen
1616
run: |
17-
go get github.com/golang/protobuf/{proto,protoc-gen-go}
17+
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
1818
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
1919
- name: create work dir
2020
run: mkdir .grpc-out

0 commit comments

Comments
 (0)