forked from opencepk/opencepk-template-meta
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (36 loc) · 1.41 KB
/
github-call-set-topic.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
---
name: github-call-set-topic
on:
push:
branches:
- main
jobs:
call-set-topic:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Get Token
id: get_workflow_token
uses: peter-murray/workflow-application-token-action@v3
with:
application_id: ${{ secrets.GH_APP_REPO_ACTION_RW_APPLICATION_ID }}
application_private_key: ${{ secrets.GH_APP_REPO_ACTION_RW_PRIVATE_KEY }}
revoke_token: true
- name: Read and Stringify JSON Data
id: read-and-stringify-json
uses: opencepk/opencepk-module-ghactions-common/read-and-stringify-json-action@fix/update-gitmodules-action
with:
file: '.project-properties.json'
file_type: 'json'
- name: Debug Stringified JSON Data
run: |
echo "JSON Data which will be sent: ${{ steps.read-and-stringify-json.outputs.output }}"
- name: Trigger reusable workflow via API
uses: opencepk/opencepk-module-ghactions-common/trigger-workflow-action@fix/update-gitmodules-action
with:
token: ${{ steps.get_workflow_token.outputs.token }}
repo: 'opencepk/opencepk-projects-hub'
workflow_id: 'github-set-topic-workflow.yml'
ref: 'main'
inputs: '{"repo":"${{github.repository}}","properties":"${{ steps.read-and-stringify-json.outputs.output}}"}'