Update Packages #1346
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 Packages | |
on: | |
workflow_dispatch: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
paths: | |
- "cmd/populator/**" | |
schedule: | |
- cron: '5 6 * * *' | |
jobs: | |
update-packages: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '^1.22' | |
- name: Setup GO environment | |
run: | | |
go mod download | |
- name: Update Packages | |
run: make generateExtensionPackages | |
env: | |
GITHUB_PAT: ${{ secrets.BOT_TOKEN }} | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
commit-message: Automatic update to packages.json | |
committer: GitHub <[email protected]> | |
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> | |
signoff: false | |
branch: update/packages | |
delete-branch: true | |
title: '[Automatic] Update packages.json' | |
body: | | |
Automatic update to packages.json | |
labels: | | |
packages | |
draft: false |