-
Notifications
You must be signed in to change notification settings - Fork 11
66 lines (56 loc) · 2.85 KB
/
update-source-cfn-schema.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# ~~ 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-'