Skip to content

Commit

Permalink
automating CloudFormation Template Schema upgrades with Github actions (
Browse files Browse the repository at this point in the history
#142)

as described in #76
  • Loading branch information
PatMyron authored Nov 20, 2020
1 parent e126dcd commit abed284
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/template-schema-updater.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
on:
schedule:
- cron: '*/5 * * * *'
jobs:
job:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2
with:
repository: aws-cloudformation/aws-cloudformation-template-schema
path: aws-cloudformation-template-schema
- uses: actions/setup-java@v1
with:
java-version: 8
- run: |
cd aws-cloudformation-template-schema
mvn package
echo 'settings:
regions: [us-east-1]
output: out' > cfg.yml
java -jar target/aws-cloudformation-template-schema-1.0-SNAPSHOT-jar-with-dependencies.jar --config-file cfg.yml
mv out/us-east-1/all-spec.json ../schema/all-spec.json
cd ..
rm -rf aws-cloudformation-template-schema
- uses: peter-evans/create-pull-request@v3
with:
commit-message: |
CloudFormation Template Schema upgrade
https://github.com/aws-cloudformation/aws-cloudformation-template-schema/issues/32
https://github.com/aws-cloudformation/aws-cloudformation-template-schema/blob/master/docs/tool/instructions.md
as described in https://github.com/aws-cloudformation/aws-cfn-lint-visual-studio-code/pull/76
delete-branch: true
title: CloudFormation Template Schema upgrade
body: |
https://github.com/aws-cloudformation/aws-cloudformation-template-schema/issues/32
https://github.com/aws-cloudformation/aws-cloudformation-template-schema/blob/master/docs/tool/instructions.md
as described in https://github.com/aws-cloudformation/aws-cfn-lint-visual-studio-code/pull/76

0 comments on commit abed284

Please sign in to comment.