Skip to content

Update with @ecomplus/storefront-template v2.0.0-beta.275 #464

Update with @ecomplus/storefront-template v2.0.0-beta.275

Update with @ecomplus/storefront-template v2.0.0-beta.275 #464

name: Init repository
on:
push:
branches:
- master
jobs:
init-repository:
name: Setup store and init repository
runs-on: ubuntu-latest
if: github.repository != 'ecomplus/storefront-starter'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Remove LICENSE and edit default README
run: |
git config --local user.email '[email protected]'
git config --local user.name 'GitHub Action'
rm -f ./LICENSE
if [ -f ./.README.md ]; then
mv ./.README.md ./README.md
fi
rm ./.github/workflows/init-repository.yml
git commit -am "chore(init): remove default license and update readme [skip ci]"
- name: Add views subtree
run: |
rm -rf ./template/pages
git commit -am "chore: remove template/pages to setup subtree"
git subtree add --prefix=template/pages \
https://github.com/ecomplus/storefront-starter-views.git master --squash
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: master