-
Notifications
You must be signed in to change notification settings - Fork 35
43 lines (36 loc) · 1.11 KB
/
sync-libs.yaml
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
40
41
42
43
name: Update external libs
on:
# Triggers the workflow every day
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
permissions:
contents: read
jobs:
sync-libs:
permissions:
contents: write # for peter-evans/create-pull-request to create branch
pull-requests: write # for peter-evans/create-pull-request to create a PR
runs-on: ubuntu-22.04
env:
SHELL: /bin/bash
steps:
- uses: actions/checkout@v4
- name: Set up Go 1.23
uses: actions/setup-go@v5
with:
go-version: 1.23.5
- name: Run sync script
run: make lib-sync
- name: Create PR
uses: peter-evans/create-pull-request@67ccf781d68cd99b580ae25a5c18a1cc84ffff1f # v7.0.6
env:
GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_KEY }}
with:
commit-message: "sync: update external libs"
author: ${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com>
title: Sync update external libs
body: |
- sync update external libs
branch: sync
delete-branch: true