Skip to content
This repository was archived by the owner on Aug 8, 2025. It is now read-only.

[action]: added explicit gh token for builder; #6

[action]: added explicit gh token for builder;

[action]: added explicit gh token for builder; #6

name: Project Generator
on:
push:
branches: [ main ]
permissions:
contents: write
jobs:
generator:
if: github.actor != 'github-actions[bot]'
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: 'Installing Deps'
run: npm i -g pnpm && pnpm i
- name: 'Generate Project'
run: node app-builder.js
- name: Commit and push project
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add .
git commit -m "[bot,builder]: ran builder;" || echo "No changes to commit"
git push "https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}.git" HEAD:main