-
Notifications
You must be signed in to change notification settings - Fork 8
41 lines (36 loc) · 1.41 KB
/
check-initial-config.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
name: "Check for updates on initial config"
on:
workflow_dispatch:
schedule:
- cron: "0 11 * * *"
permissions:
id-token: write
contents: write
pull-requests: write
jobs:
update-initial-config:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Get latest initial-config file
run: |
curl -s https://raw.githubusercontent.com/Chia-Network/chia-blockchain/refs/heads/latest/chia/util/initial-config.yaml -o ./pkg/config/initial-config.yml
- name: Set up commit signing
uses: Chia-Network/actions/commit-sign/gpg@main
with:
gpg_private_key: ${{ secrets.CHIA_AUTOMATION_PRIVATE_GPG_KEY }}
passphrase: ${{ secrets.CHIA_AUTOMATION_PRIVATE_GPG_PASSPHRASE }}
- name: "Create Pull Request"
uses: peter-evans/create-pull-request@v6
with:
base: main
branch: initial-config-update
commit-message: "Add updated initial config from chia-blockchain"
delete-branch: true
reviewers: "cmmarslender"
assignees: "cmmarslender"
title: "Initial Config Update"
body: "Add updated initial config from chia-blockchain\n\nThis PR likely needs to be accompanied by manual config type updates"
token: "${{ secrets.GITHUB_TOKEN }}"
committer: "ChiaAutomation <[email protected]>"
author: "ChiaAutomation <[email protected]>"