-
Notifications
You must be signed in to change notification settings - Fork 4
41 lines (36 loc) · 1.48 KB
/
update-catalog.yml
File metadata and controls
41 lines (36 loc) · 1.48 KB
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
name: Update Keyfactor Integrations Catalog Entry
on:
workflow_call:
secrets:
token:
description: 'Secret token from caller workflow to access SDK repo'
required: true
jobs:
update-catalog-entry:
runs-on: ubuntu-latest
steps:
- name: Checkout project repo
uses: keyfactor/checkout@v4
- name: Checkout catalog repo
uses: keyfactor/checkout@v4
with:
token: ${{ secrets.token }}
path: './catalog-temp/'
repository: 'Keyfactor/integrations-catalog' # Change back to integrations-catalog after testing
- uses: Keyfactor/jinja2-action@v1.2.0-multiple-data-files
with:
template: ./catalog-temp/_integration.md.tpl
output_file: ${{ format('./catalog-temp/_integrations/{0}.md', github.event.repository.name) }}
data_file: integration-manifest.json
variables: |
repository= ${{ format('https://github.com/{0}', github.repository) }}
env:
GITHUB_TOKEN: ${{ secrets.token }}
- uses: Keyfactor/add-and-commit@v9.1.4
with:
author_name: 'Keyfactor'
author_email: 'keyfactor@keyfactor.github.io'
branch: 'main'
message: ${{ format('Added the manifest for {0}', github.event.repository.name) }}
add: ${{ format('_integrations/{0}.md --force', github.event.repository.name) }}
cwd: './catalog-temp/'