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 23, 2024
1 parent c4727a5 commit 62e8d2c
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/call-github-set-topic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 62e8d2c

Please sign in to comment.