Skip to content

Commit c6fb2e7

Browse files
authored
Update GitHub actions to use provider schemas (#286)
1 parent b497e50 commit c6fb2e7

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/template-schema-updater.yaml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
name: Update CloudFormation schemas
12
on:
23
schedule:
34
- cron: '*/5 * * * *'
@@ -11,17 +12,17 @@ jobs:
1112
with:
1213
repository: aws-cloudformation/aws-cloudformation-template-schema
1314
path: aws-cloudformation-template-schema
14-
- uses: actions/setup-java@v3
15+
ref: main
16+
- uses: actions/setup-python@v4
1517
with:
16-
java-version: 8
18+
python-version: '3.9'
19+
- name: Install Poetry
20+
uses: snok/install-poetry@v1
1721
- run: |
1822
cd aws-cloudformation-template-schema
19-
mvn package
20-
echo 'settings:
21-
regions: [us-east-1]
22-
output: out' > cfg.yml
23-
java -jar target/aws-cloudformation-template-schema-1.0-SNAPSHOT-jar-with-dependencies.jar --config-file cfg.yml
24-
mv out/us-east-1/all-spec.json ../schema/all-spec.json
23+
poetry install
24+
poetry run cfn-template-schema generate --output-folder specs --type language-server
25+
mv specs/* ../server/schema/
2526
cd ..
2627
rm -rf aws-cloudformation-template-schema
2728
- uses: peter-evans/create-pull-request@v4

0 commit comments

Comments
 (0)