Skip to content

chore: automate daily import of the patched CloudFormation schema #662

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 3 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,11 @@ jobs:
branch: github-actions/release
base: main
body: |
release: <%= crate.name %> v<%= version.actual %>

[Workflow Run]: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
commit-message: |-
release: <%= crate.name %> v<%= version.actual %>

release: cdk-from-cfn

[Workflow Run]: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}

title: |
release: <%= crate.name %> v<%= version.actual %>
chore: release cdk-from-cfn
labels: auto-approve
- name: Push New Tag
run: git push origin --tags
Expand Down
54 changes: 54 additions & 0 deletions .github/workflows/schema-sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: schema-sync

on:
workflow_dispatch: {}
schedule:
# An hour before the daily release sync
- cron: 0 23 * * *

jobs:
generate:
name: Generate Patched Schema
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@main
with:
token: ${{ secrets.PROJEN_GITHUB_TOKEN }}
- name: Set Git Identity
run: |-
git config user.name "cdklabs-automation"
git config user.email "[email protected]"
- name: Setup Node
uses: actions/setup-node@main
with:
node-version: '*'
env:
NODE_OPTIONS: '--max-old-space-size=8196'
- name: Pull and Patch Schema
id: pull_and_patch
uses: cdklabs/cdk-patched-schema-generator@main
with:
output-path: '/home/runner/work/cdk-from-cfn/cdk-from-cfn/src/specification'
- name: Show Diff
run: 'git diff'
- name: Open Pull Request
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.PROJEN_GITHUB_TOKEN }}
author: cdklabs-automation <[email protected]>
committer: cdklabs-automation <[email protected]>
signoff: true
branch: github-actions/update-schema
body: |
Updates CloudFormation Specification. See details in [workflow run].

[workflow run]: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
commit-message: |-
chore: upgrade cloudformation specification

Updates CloudFormation Specification. See details in [workflow run].

[workflow run]: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
title: 'chore: update cloudformation specification'
labels: auto-approve
Loading