-
Notifications
You must be signed in to change notification settings - Fork 12
48 lines (42 loc) · 1.16 KB
/
nightly-update-packages.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
40
41
42
43
44
45
46
47
48
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