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.
1 parent 2c7a418 commit 4eb6478Copy full SHA for 4eb6478
entrypoint.sh
@@ -3,9 +3,13 @@
3
readonly TAG=${GITHUB_REF#refs/tags/*}
4
readonly VERSION=${TAG##*/}
5
6
-PACKAGE=github.com/${GITHUB_REPOSITORY}
+PACKAGE=${INPUT_IMPORT_PATH:=github.com/${GITHUB_REPOSITORY}}
7
+
8
+# submodules version tags are formatted as <submodule>/vX.Y.Z,
9
+# so we extract the submodule name and append it to the main module
10
+# import path
11
if [[ "$VERSION" != "$TAG" ]]; then
- PACKAGE=github.com/${GITHUB_REPOSITORY}/${TAG%"/$VERSION"}
12
+ PACKAGE=${PACKAGE}/${TAG%"/$VERSION"}
13
fi
14
15
# if version > 1, then add the version scope
0 commit comments