Skip to content

Full alpha implementation. #8

Full alpha implementation.

Full alpha implementation. #8

Workflow file for this run

name: Apply caz templating
on: [push]
jobs:
run-caz:
# Avoid running more than once
if: ${{ github.repository != 'web-illinois/toolkit-template' && github.repository != 'marvel-uiuc/template-ilw' && github.run_number == 1 }}
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Apply caz template
run: npx -y caz ./ output --name ${{ github.event.repository.name }} --repository ${{ github.repository }}
- name: Commit template changes
run: |
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
rm -rf template index.js .gitignore package-lock.json README.md
cp -rT output .
rm -rf output
git add -A
git commit -a -m "chore: init template"
git push --force