Skip to content

.github/workflows/schema-updater.yaml #124068

.github/workflows/schema-updater.yaml

.github/workflows/schema-updater.yaml #124068

on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch: # Enables on-demand/manual triggering: https://docs.github.com/en/free-pro-team@latest/actions/managing-workflow-runs/manually-running-a-workflow
jobs:
schema-updater:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
curl https://raw.githubusercontent.com/aws-cloudformation/aws-cloudformation-resource-schema/master/src/main/resources/schema/provider.definition.schema.v1.json > src/rpdk/core/data/schema/provider.definition.schema.v1.json
curl https://raw.githubusercontent.com/aws-cloudformation/aws-cloudformation-resource-schema/master/src/main/resources/schema/provider.configuration.definition.schema.v1.json > src/rpdk/core/data/schema/provider.configuration.definition.schema.v1.json
curl https://raw.githubusercontent.com/aws-cloudformation/aws-cloudformation-resource-schema/master/src/main/resources/schema/base.definition.schema.v1.json > src/rpdk/core/data/schema/base.definition.schema.v1.json
curl https://raw.githubusercontent.com/aws-cloudformation/aws-cloudformation-resource-schema/master/src/main/resources/schema/schema > src/rpdk/core/data/schema/meta-schema.json
- uses: peter-evans/create-pull-request@v5
with:
commit-message: |
CloudFormation Resource Provider Definition MetaSchema update
delete-branch: true
title: CloudFormation Resource Provider Definition MetaSchema update
body: |
If tests are stuck on https://github.com/peter-evans/create-pull-request/issues/48:
["Manually close pull requests and immediately reopen them. This will enable `on: pull_request` workflows to run and be added as checks."](https://github.com/peter-evans/create-pull-request/blob/master/docs/concepts-guidelines.md#triggering-further-workflow-runs)