Skip to content

Update Extensions schema #180

Update Extensions schema

Update Extensions schema #180

---
name: Update Extensions schema
on:
workflow_dispatch: {}
schedule:
- cron: 0 0 * * *
jobs:
update-extensions-schema:
runs-on: ubuntu-latest
env:
LOG_LEVEL: debug
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: stable
cache-dependency-path: hack/tsehelper/go.sum
- uses: actions/cache@v4
with:
path: ~/.cache/talhelper
key: ${{ runner.os }}-tsehelper
- run: |
cd hack/tsehelper
go run . -minimal --output ../../pkg/config/schemas/talos-extensions.json
- name: Generate token
uses: tibdex/github-app-token@v2
id: generate-token
with:
app_id: "${{ secrets.BOT_APP_ID }}"
private_key: "${{ secrets.BOT_APP_PRIVATE_KEY }}"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
id: cpr
with:
token: "${{ steps.generate-token.outputs.token }}"
title: "chore(schema): update talos-extensions.yaml JSON schema"
commit-message: "chore(schema): update talos-extensions.yaml JSON schema"
delete-branch: true
committer: budimanjojo-bot <111944664+budimanjojo-bot[bot]@users.noreply.github.com>
author: budimanjojo-bot <111944664+budimanjojo-bot[bot]@users.noreply.github.com>
- name: Automerge
if: steps.cpr.outputs.pull-request-operation == 'created'
uses: peter-evans/enable-pull-request-automerge@v3
with:
token: "${{ steps.generate-token.outputs.token }}"
pull-request-number: "${{ steps.cpr.outputs.pull-request-number }}"
merge-method: squash