From 62e8d2c2781f74e8d17a64faade74a82b614c3a8 Mon Sep 17 00:00:00 2001 From: hminaee-tc Date: Fri, 23 Aug 2024 19:54:33 -0300 Subject: [PATCH] fix/mirror: cleanup --- .github/workflows/call-github-set-topic.yml | 23 ++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/.github/workflows/call-github-set-topic.yml b/.github/workflows/call-github-set-topic.yml index 884f7f7..e102917 100644 --- a/.github/workflows/call-github-set-topic.yml +++ b/.github/workflows/call-github-set-topic.yml @@ -40,10 +40,19 @@ jobs: echo "JSON Data which will be sent: ${{ env.PROPERTIES_ESCAPED }}" - name: Trigger reusable workflow via API - run: | - curl -X POST \ - -H "Accept: application/vnd.github.v3+json" \ - -H "Authorization: token ${{ steps.get_workflow_token.outputs.token }}" \ - -d '{"ref":"main", "inputs":{"repo":"${{ github.repository }}", \ - "properties":"${{ env.PROPERTIES_ESCAPED }}"}}' \ - https://api.github.com/repos/opencepk/opencepk-projects-hub/actions/workflows/github-set-topic-workflow.yml/dispatches + 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 }}"}' + + # - name: Trigger reusable workflow via API + # run: | + # curl -X POST \ + # -H "Accept: application/vnd.github.v3+json" \ + # -H "Authorization: token ${{ steps.get_workflow_token.outputs.token }}" \ + # -d '{"ref":"main", "inputs":{"repo":"${{ github.repository }}", \ + # "properties":"${{ env.PROPERTIES_ESCAPED }}"}}' \ + # https://api.github.com/repos/opencepk/opencepk-projects-hub/actions/workflows/github-set-topic-workflow.yml/dispatches