We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
package_name
1 parent 46ab7da commit 5744f50Copy full SHA for 5744f50
action.yml
@@ -6,6 +6,10 @@ inputs:
6
description: 'Script to test for invalidations. Defaults to `using Package`'
7
required: false
8
default: ''
9
+ package_name:
10
+ description: 'Name of the package. By default, tries to auto-detect from the repo name.'
11
+ required: false
12
+ default: ''
13
14
outputs:
15
total:
@@ -22,7 +26,12 @@ runs:
22
26
id: info
23
27
run: |
24
28
REPONAME="${{ github.event.repository.name }}"
25
- PACKAGENAME=${REPONAME%.jl}
29
+ if [[ '${{ inputs.package_name }}' == '' ]]; then
30
+ PACKAGENAME=${REPONAME%.jl}
31
+ else
32
+ PACKAGENAME=""
33
+ PACKAGENAME="${{ inputs.package_name }}"
34
+ fi
35
echo "packagename=$PACKAGENAME" >> $GITHUB_OUTPUT
36
if [[ '${{ inputs.test_script }}' == '' ]]; then
37
TESTSCRIPT="using ${PACKAGENAME}"
0 commit comments