Skip to content

base with $data

base with $data #273

Workflow file for this run

name: push stripped down version to main
on: push
jobs:
update:
if: github.ref == 'refs/heads/public'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: main
- run: |
git config user.name github-actions
git config user.email [email protected]
# need anvil
# - run: echo "TESTING degit" && npx degit wighawag/jolly-roger#dev __test__ && cd __test__ && npx pnpm i && npx pnpm template-test && cd .. && rm -Rf __test__
- run: |
echo "fetching ${{ github.ref_name }}..."
git fetch origin ${{ github.ref_name }}:${{ github.ref_name }}
# completely copy from public
git reset origin/${{ github.ref_name }} --hard
- run: node transform.js
- run: |
git add -A
git commit -m "Transform branch ${{ github.ref_name }} into a generic template"
git push --force