Skip to content

Commit

Permalink
fix/mirror: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
hminaee-tc committed Aug 24, 2024
1 parent 62e8d2c commit 32f594b
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 58 deletions.
58 changes: 0 additions & 58 deletions .github/workflows/call-github-set-topic.yml

This file was deleted.

41 changes: 41 additions & 0 deletions .github/workflows/github-call-set-topic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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.properties }}"
- 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":"${{ env.PROPERTIES_ESCAPED }}"}'

0 comments on commit 32f594b

Please sign in to comment.