Skip to content

Commit c472f98

Browse files
chore: created local '.github/workflows/backstage-catalog-helper.yml' from remote 'tools/sre_file_sync/backstage-catalog-helper.yml' (#138)
Co-authored-by: sre-read-write[bot] <92993749+sre-read-write[bot]@users.noreply.github.com>
1 parent 6ecac4e commit c472f98

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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+
uses: cds-snc/[email protected]
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

0 commit comments

Comments
 (0)