Skip to content

Commit

Permalink
ci(get_module_info): add repository input
Browse files Browse the repository at this point in the history
  • Loading branch information
Silverlan authored Apr 19, 2024
1 parent 611fac9 commit 5a4441d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion github_actions/get_module_info/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ inputs:
description: 'Token required to access the GitHub repository (if it is private).'
required: true
default: ''
repository:
description: 'The target repository from which to get the module info.'
required: true
default: '${{ github.repository }}/${{ github.ref_name }}'
outputs:
name:
description: 'Pretty name of the module'
Expand Down Expand Up @@ -36,7 +40,7 @@ runs:
if [ -n "$token" ]; then
token="${token}@"
fi
curl https://${token}raw.githubusercontent.com/${{ github.repository }}/${{ github.ref_name }}/.github/pragma_module_info.json -o pragma_module_info.json
curl https://${token}raw.githubusercontent.com/${{ inputs.repository }}/.github/pragma_module_info.json -o pragma_module_info.json
filepath="pragma_module_info.json"
remFile=1
Expand Down

0 comments on commit 5a4441d

Please sign in to comment.