File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Backstage Catalog Info Helper
2+ on :
3+ workflow_dispatch :
4+ schedule :
5+ - cron : " 0 0 * * *"
6+
7+ jobs :
8+ update-catalog-info :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - name : Checkout Actions
12+ uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
13+ with :
14+ fetch-depth : 0
15+ - name : Run Backstage Catalog Info Helper
16+ 17+ with :
18+ github_app_id : ${{ secrets.SRE_BOT_RW_APP_ID }}
19+ github_app_private_key : ${{ secrets.SRE_BOT_RW_PRIVATE_KEY }}
20+ github_organization : cds-snc
21+ - name : impersonate Read/Write GH App
22+ uses : tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a
23+ id : generate_token
24+ with :
25+ app_id : ${{ secrets.SRE_BOT_RW_APP_ID }}
26+ private_key : ${{ secrets.SRE_BOT_RW_PRIVATE_KEY }}
27+ - name : Create pull request
28+ uses : peter-evans/create-pull-request@v3
29+ with :
30+ token : ${{ steps.generate_token.outputs.token}}
31+ commit-message : ' Add catalog-info.yaml'
32+ branch : ' backstage/catalog-info'
33+ title : ' Add catalog-info.yaml'
34+ body : ' Adding a basic catalog-info.yaml to start populating the backstage catalog with your components.'
35+ labels : ' backstage'
36+ add-paths : |
37+ catalog-info.yaml
You can’t perform that action at this time.
0 commit comments