File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 28
28
required : false
29
29
type : boolean
30
30
default : false
31
+ build-date :
32
+ description : ' Build date'
33
+ required : false
34
+ type : string
35
+ default : ' '
31
36
push :
32
37
branches :
33
38
- trunk
@@ -75,13 +80,18 @@ jobs:
75
80
gh_cli_token : ${{ secrets.GITHUB_TOKEN }}
76
81
- name : Sets build date
77
82
run : |
78
- echo "BUILD_DATE=$(date '+%Y%m%d')" >> $GITHUB_ENV
83
+ if [ -z "${BUILD_DATE}" ]; then
84
+ echo "BUILD_DATE=$(date '+%Y%m%d')" >> $GITHUB_ENV
85
+ else
86
+ echo "BUILD_DATE=${BUILD_DATE}" >> $GITHUB_ENV
87
+ fi
79
88
echo "NAME=${NAMESPACE}" >> $GITHUB_ENV
80
89
make set_build_multiarch
81
90
cat .env | xargs -I {} echo {} >> $GITHUB_ENV
82
91
env :
83
92
NAMESPACE : ${{ vars.DOCKER_NAMESPACE || 'selenium' }}
84
93
AUTHORS : ${{ vars.AUTHORS || 'SeleniumHQ' }}
94
+ BUILD_DATE : ${{ github.event.inputs.build-date || '' }}
85
95
- name : Sets prerelease to false by default
86
96
run : echo "PRERELEASE=false" >> $GITHUB_ENV
87
97
- name : Get Grid version
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ RUN apt-get update -qqy && \
33
33
FIREFOX_DOWNLOAD_URL="https://download-installer.cdn.mozilla.net/pub/firefox/releases/$FIREFOX_VERSION/linux-x86_64/en-US/firefox-$FIREFOX_VERSION.deb" ; \
34
34
fi \
35
35
else \
36
- if [ $FIREFOX_VERSION = "latest" ]; then \
36
+ if [ ${ FIREFOX_VERSION} = "latest" ] && [ ${FIREFOX_DOWNLOAD_URL} = " " ]; then \
37
37
FIREFOX_VERSION="nightly-latest" ; \
38
38
/opt/bin/install-firefox-apt.sh \
39
39
&& FIREFOX_VERSION=$(echo "-$FIREFOX_VERSION" | sed 's/-latest//' ) \
You can’t perform that action at this time.
0 commit comments