Skip to content

first time setup of repo #4

first time setup of repo

first time setup of repo #4

Workflow file for this run

name: bootstrap
run-name: first time setup of repo
on:
# run when branch created (repo generated from template)
create:
# only keep latest run of this workflow
concurrency:
group: bootstrap
cancel-in-progress: true
permissions:
actions: write
checks: write
contents: write
jobs:
bootstrap:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
steps:
- name: Checkout code
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
# remove files not needed for user instance of template
- name: Remove unneeded files
run: rm -f LICENSE SECURITY.md .github/workflows/bootstrap.yml
# save changed files
- name: Commit changed files
uses: stefanzweifel/git-auto-commit-action@3ea6ae190baf489ba007f7c92608f33ce20ef04a # v4.16.0
with:
commit_message: "Setup repo"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}