Skip to content

update-source-cfn-schema #67

update-source-cfn-schema

update-source-cfn-schema #67

# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".
name: update-source-cfn-schema
on:
workflow_dispatch: {}
schedule:
- cron: 11 3 * * 1-5
jobs:
update_source:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: none
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v3
with:
lfs: true
- name: Set git identity
run: |-
git config user.name "github-actions"
git config user.email "[email protected]"
- name: Install dependencies
run: yarn install --check-files --frozen-lockfile
- name: update-source:cfn-schema
run: npx projen update-source:cfn-schema
- name: Create Pull Request
id: create-pr
uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.PROJEN_GITHUB_TOKEN }}
commit-message: |-
feat(sources): update cfn-schema
> ⚠️ This Pull Request updates daily and will overwrite **all** manual changes pushed to the branch
Updates the cfn-schema source from upstream. See details in [workflow run].
[Workflow Run]: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
------
*Automatically created by projen via the "update-source-cfn-schema" workflow*
branch: update-source/cfn-schema
base: main
title: "feat(sources): update cfn-schema"
labels: auto-approve
body: |-
> ⚠️ This Pull Request updates daily and will overwrite **all** manual changes pushed to the branch
Updates the cfn-schema source from upstream. See details in [workflow run].
[Workflow Run]: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
------
*Automatically created by projen via the "update-source-cfn-schema" workflow*
author: github-actions <[email protected]>
committer: github-actions <[email protected]>
signoff: true
- name: add-instructions
if: ${{ steps.create-pr.outputs.pull-request-number }}
env:
GH_TOKEN: ${{ github.token }}
run: 'echo -e "**To work on this Pull Request, please create a new branch and PR. This prevents your work from being deleted by the automation.**\n\nRun the following commands inside the repo:\n\`\`\`console\ngh co ${{ steps.create-pr.outputs.pull-request-number }}\ngit switch -c fix-pr-${{ steps.create-pr.outputs.pull-request-number }} && git push -u origin HEAD\ngh pr create -t \"fix: PR #${{ steps.create-pr.outputs.pull-request-number }}\" --body \"Fixes ${{ steps.create-pr.outputs.pull-request-url }}\"\n\`\`\`"| gh pr comment ${{ steps.create-pr.outputs.pull-request-number }} -F-'