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.
2 parents 9b02568 + 7038ede commit fa52178Copy full SHA for fa52178
.github/workflows/BuildImage.yml
@@ -1,6 +1,11 @@
1
name: Build Image
2
3
-on: [push, pull_request, workflow_dispatch]
+on:
4
+ push:
5
+ pull_request:
6
+ workflow_dispatch:
7
+ inputs:
8
+ GO_VERSION:
9
10
env:
11
ENDPOINT: "linuxserver/mods" #don't modify
@@ -17,6 +22,7 @@ jobs:
17
22
run: |
18
23
# Set version
19
24
GO_WEBSITE=$(curl -sX GET https://golang.org/dl/)
25
+ GO_VERSION=${{ github.event.inputs.GO_VERSION }}
20
26
GO_VERSION=${GO_VERSION:-$(echo "$GO_WEBSITE" | grep -o '<span.*>.*linux-amd64.*</span>' | grep -oP '(?<=go).*(?=.linux)')}
21
27
if [ $(echo "$GO_VERSION" | tr -d -c '.' | awk '{ print length; }') = "1" ]; then GO_TAG="${GO_VERSION}.0"; else GO_TAG="${GO_VERSION}"; fi
28
echo "GO_TAG=${GO_TAG}" >> $GITHUB_ENV
0 commit comments