-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #170 from ZIMkaRU/feature/add-ability-to-turn-off-…
…auto-update Add ability to turn off auto-update
- Loading branch information
Showing
13 changed files
with
124 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
REPO_BRANCH=master | ||
IS_BFX_API_STAGING=0 | ||
IS_DEV_ENV=0 | ||
IS_AUTO_UPDATE_DISABLED=0 | ||
EP_GH_IGNORE_TIME=true | ||
GH_TOKEN= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,9 @@ on: | |
version: | ||
description: 'Release version' | ||
required: false | ||
isAutoUpdateDisabled: | ||
description: 'Is auto-update disabled (true / 1)?' | ||
required: false | ||
|
||
env: | ||
DOCKER_BUILDKIT: 1 | ||
|
@@ -38,6 +41,10 @@ jobs: | |
sed -i -e \ | ||
"s/\"version\": \".*\"/\"version\": \"${{ github.event.inputs.version }}\"/g" \ | ||
"./package.json" | ||
- if: contains(fromJson('["true", "1", true, 1]'), github.event.inputs.isAutoUpdateDisabled) | ||
name: Turn off auto-update | ||
run: | | ||
echo "IS_AUTO_UPDATE_DISABLED=1" >> $GITHUB_ENV | ||
- name: Cache Docker images | ||
uses: ScribeMD/[email protected] | ||
env: | ||
|
@@ -92,6 +99,10 @@ jobs: | |
sed -i -e \ | ||
"s/\"version\": \".*\"/\"version\": \"${{ github.event.inputs.version }}\"/g" \ | ||
"./package.json" | ||
- if: contains(fromJson('["true", "1", true, 1]'), github.event.inputs.isAutoUpdateDisabled) | ||
name: Turn off auto-update | ||
run: | | ||
echo "IS_AUTO_UPDATE_DISABLED=1" >> $GITHUB_ENV | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 14.16.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"NODE_ENV": "production", | ||
"IS_AUTO_UPDATE_DISABLED": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters