From cfe6ed2c6cccd00f7b0e917d4442e985130a3955 Mon Sep 17 00:00:00 2001 From: Chris Marslender Date: Thu, 19 Sep 2024 14:54:44 -0500 Subject: [PATCH 1/2] Add a workflow to pull in initial config changes automatically --- .github/workflows/check-initial-config.yml | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/check-initial-config.yml diff --git a/.github/workflows/check-initial-config.yml b/.github/workflows/check-initial-config.yml new file mode 100644 index 0000000..7f85728 --- /dev/null +++ b/.github/workflows/check-initial-config.yml @@ -0,0 +1,40 @@ +name: "Check for updates on initial config" +on: + workflow_dispatch: + schedule: + - cron: "0 11 * * *" + +permissions: + id-token: write + contents: 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" + token: "${{ secrets.GITHUB_TOKEN }}" + committer: "ChiaAutomation " + author: "ChiaAutomation " From 6f23680aa35e539cc4759702d40379a4ee597de5 Mon Sep 17 00:00:00 2001 From: Chris Marslender Date: Thu, 19 Sep 2024 14:55:24 -0500 Subject: [PATCH 2/2] Automatically pull initial config updates --- .github/workflows/check-initial-config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check-initial-config.yml b/.github/workflows/check-initial-config.yml index 7f85728..3ce9ec4 100644 --- a/.github/workflows/check-initial-config.yml +++ b/.github/workflows/check-initial-config.yml @@ -34,7 +34,7 @@ jobs: reviewers: "cmmarslender" assignees: "cmmarslender" title: "Initial Config Update" - body: "Add updated initial config from chia-blockchain" + 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 " author: "ChiaAutomation "