forked from pgrimaud/action-shopify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathentrypoint.sh
executable file
·20 lines (19 loc) · 974 Bytes
/
entrypoint.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
git clone https://d-woegerbauer:$GITHUB_TOKEN@github.com/pcode-at/ecoled-shopify-store.git
cd ecoled-shopify-store
git config user.name "d-woegerbauer"
git config user.email "david.woegerbauer@pcode.at"
git fetch
git checkout github-action-updates
git pull --rebase
cd "$THEME_PATH"
theme configure --password="$SHOPIFY_PRODUCTION_PASSWORD" --store="$SHOPIFY_PRODUCTION_STORE_URL" --themeid="$SHOPIFY_PREPRODUCTION_THEME_ID"
theme download --no-ignore config/settings_data.json locales/*
git add config/settings_data.json locales/*
git diff --quiet && git diff --staged --quiet || git commit -am 'Updated settings_data.json and locales directory'
git push origin github-action-updates
git checkout develop
git merge github-action-updates -m="Update shopify configuration"
git push origin develop
theme configure --password="$SHOPIFY_STAGING_PASSWORD" --store="$SHOPIFY_STAGING_STORE_URL" --themeid="$SHOPIFY_STAGING_THEME_ID"
theme deploy --no-ignore --allow-live