GitHub Action that bootstraps a repository with starter files and opens a pull request.
README.mdLICENSE(MIT, Apache, or GPL).gitignore(node, python, go, or rust).github/ISSUE_TEMPLATE.md.github/PULL_REQUEST_TEMPLATE.md
| Input | Required | Description |
|---|---|---|
repo_name |
yes | Repository name for the README |
description |
yes | Short project description |
license |
yes | MIT, Apache, or GPL |
language |
yes | node, python, go, or rust |
github_token |
yes | Token that can push a branch and open a PR |
dry_run |
no | true to generate files only |
target_path |
no | Where to write files (default .) |
branch |
no | PR branch (default smartcloud/bootstrap) |
name: Bootstrap repo
on:
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
bootstrap:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Resnovas/smartcloud-bootstrap@v0.1
with:
repo_name: my-app
description: Saves setup time on new repos
license: MIT
language: node
github_token: ${{ secrets.GITHUB_TOKEN }}bash tests/run-local.shMIT