first time setup of repo #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |