Update external libs #143
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.3 | |
- name: Run sync script | |
run: make lib-sync | |
- name: Create PR | |
uses: peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c # v6.1.0 | |
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 |