Created
December 18, 2018 06:39
-
-
Save jamsea/70e75d00310a87f99fba9f20f8d9fb84 to your computer and use it in GitHub Desktop.
Auto Sync Shopify
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
#!/bin/bash | |
# Get Theme (install themekit here, probably a good idea to copy/paste these commands to the top https://shopify.github.io/themekit/) | |
theme get --password=[your-api-password] --store=[your-store.myshopify.com] --themeid=[your-theme-id] | |
unzip ThemeName.zip | |
cp -R ThemeName/ WhereYourThemeIs/ | |
cd WhereYourThemeIs/ || exit 0 | |
git checkout -b themeChanges | |
git push origin themeChanges | |
# Go to BitBucket make Pull Request | |
# Use cron (https://superuser.com/questions/1144910/how-do-i-setup-a-cron-job-on-os-x-to-run-a-curl-command-at-a-specific-time-every) | |
# to make this run every hour or whatever you want |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment