-
Notifications
You must be signed in to change notification settings - Fork 163
23 lines (23 loc) · 1.85 KB
/
schema-updater.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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)