Don't pull main in the usual case (#937)

* Don't pull main in the usual case

* Use git to avoid setuptools_scm issues

* Double check submodule git status

* add js-yaml
This commit is contained in:
Gene Hoffman 2021-02-17 16:43:28 -08:00 committed by GitHub
parent ef482d85e9
commit 7ba15e57f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 14 deletions

View File

@ -85,11 +85,11 @@ jobs:
p12-password: ${{ secrets.APPLE_DEV_ID_APP_PASS }}
- name: Checkout GUI
uses: actions/checkout@v2
with:
repository: 'Chia-Network/chia-blockchain-gui'
ref: 'main'
path: './chia-blockchain-gui'
run: |
echo "Running git submodule update --init --recursive."
git submodule update --init --recursive
cd chia-blockchain-gui
git status
- name: Run install script
env:

View File

@ -63,10 +63,10 @@ jobs:
- name: Checkout GUI
run: |
echo "Running git submodule update --init --recursive."
git submodule update --init --recursive
cd chia-blockchain-gui
git checkout main
git pull
git status
- name: Test for secrets access
id: check_secrets

@ -1 +1 @@
Subproject commit 65fc9a87127115ca0092e1090caf796693ab6eef
Subproject commit 9025c226998f696ceb1307ce1ce399c5e2106180

View File

@ -58,21 +58,23 @@ fi
# for Mac and Windows so skip unless completing a source/developer install
# Ubuntu special cases above
if [ ! "$CI" ]; then
git submodule update --init --recursive
echo "Running git submodule update --init --recursive."
echo ""
cd chia-blockchain-gui
git submodule update --init --recursive
echo "Running git submodule update."
echo ""
git submodule update
cd chia-blockchain-gui
if [ "$SUBMODULE_BRANCH" ];
then
git checkout "$SUBMODULE_BRANCH"
git pull
echo ""
echo "Building the GUI with branch $SUBMODULE_BRANCH"
echo ""
else
git checkout main
fi
git pull
fi
npm install
npm audit fix
npm run locale:extract