-
Notifications
You must be signed in to change notification settings - Fork 11
39 lines (35 loc) · 1.13 KB
/
checkrepo.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: check repo exists
on:
pull_request_target:
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
path: main
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
path: pr
- uses: actions/setup-go@v5
with:
go-version: ^1.22
cache-dependency-path: |
main/go.sum
- name: save private to file
run: 'echo "$MK_REPO_APP_PRIVATE_KEY" > /tmp/private_key'
env:
MK_REPO_APP_PRIVATE_KEY: ${{secrets.MK_REPO_APP_PRIVATE_KEY}}
- name: create repo
run: |
cd main
go run ./tools/mkrepo -check ../pr/repos.yaml
env:
MK_REPO_ORG: linglongdev
MK_REPO_MANAGER_REPO: Repository-Manager
MK_REPO_APP_ID: ${{ secrets.MK_REPO_APP_ID }}
MK_REPO_APP_INSTALL_ID: ${{ secrets.MK_REPO_APP_INSTALL_ID }}
MK_REPO_APP_PRIVATE_KEY: /tmp/private_key
MK_REPO_WEBHOOK_URL: ${{ secrets.MK_REPO_WEBHOOK_URL }}
MK_REPO_WEBHOOK_SECRET: ${{ secrets.MK_REPO_WEBHOOK_SECRET }}