File tree 1 file changed +14
-0
lines changed
1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ actor="$GITHUB_ACTOR"
7
7
token=" $INPUT_TOKEN "
8
8
formula=" $INPUT_FORMULA "
9
9
url=" $INPUT_URL "
10
+ mirror=" $INPUT_MIRROR "
10
11
sha256=" $INPUT_SHA256 "
11
12
tag=" $INPUT_TAG "
12
13
revision=" $INPUT_REVISION "
@@ -32,11 +33,21 @@ if test -n "$tag" && test -n "$sha256"; then
32
33
exit 1
33
34
fi
34
35
36
+ if test -n " $tag " && test -n " $mirror " ; then
37
+ echo " Can't specify 'tag' and 'mirror' together"
38
+ exit 1
39
+ fi
40
+
35
41
if test -n " $revision " && test -n " $sha256 " ; then
36
42
echo " Can't specify 'revision' and 'sha256' together"
37
43
exit 1
38
44
fi
39
45
46
+ if test -n " $revision " && test -n " $mirror " ; then
47
+ echo " Can't specify 'revision' and 'mirror' together"
48
+ exit 1
49
+ fi
50
+
40
51
if test -z " $url " && test -z " $tag " && test -z " $revision " ; then
41
52
echo " Need to specify 'url' with optional 'sha256', or 'tag' and 'revision'"
42
53
exit 1
63
74
if test -n " $url " ; then
64
75
args+=(--url=" $url " )
65
76
fi
77
+ if test -n " $mirror " ; then
78
+ args+=(--mirror=" $mirror " )
79
+ fi
66
80
if test -n " $sha256 " ; then
67
81
args+=(--sha256=" $sha256 " )
68
82
fi
You can’t perform that action at this time.
0 commit comments