Skip to content

Commit 6aa9d4d

Browse files
chore: created local '.github/workflows/backstage-catalog-helper.yml' from remote 'tools/sre_file_sync/backstage-catalog-helper.yml'
1 parent 82c43bf commit 6aa9d4d

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Backstage Catalog Info Helper
2+
on:
3+
workflow_dispatch:
4+
5+
permissions:
6+
contents: write
7+
pull-requests: write
8+
9+
jobs:
10+
update-catalog-info:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout Actions
14+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
15+
with:
16+
fetch-depth: 0
17+
persist-credentials: false
18+
- name: Run Backstage Catalog Info Helper
19+
uses: cds-snc/backstage-catalog-info-helper-action@cc75afc29a0ade6c41400132ff9e1222f8916ba6 # v0.3.1
20+
with:
21+
github_app_id: ${{ secrets.SRE_BOT_RW_APP_ID }}
22+
github_app_private_key: ${{ secrets.SRE_BOT_RW_PRIVATE_KEY }}
23+
github_organization: cds-snc
24+
- name: impersonate Read/Write GH App
25+
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a
26+
id: generate_token
27+
with:
28+
app_id: ${{ secrets.SRE_BOT_RW_APP_ID }}
29+
private_key: ${{ secrets.SRE_BOT_RW_PRIVATE_KEY }}
30+
- name: Create pull request
31+
uses: peter-evans/create-pull-request@6cd32fd93684475c31847837f87bb135d40a2b79 # v7.0.3
32+
with:
33+
token: ${{ steps.generate_token.outputs.token}}
34+
sign-commits: true
35+
commit-message: 'Add catalog-info.yaml'
36+
branch: 'backstage/catalog-info'
37+
title: 'Add catalog-info.yaml'
38+
body: 'Adding a basic catalog-info.yaml to start populating the backstage catalog with your components.'
39+
labels: 'backstage'
40+
add-paths: |
41+
catalog-info.yaml

0 commit comments

Comments
 (0)