-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (28 loc) · 991 Bytes
/
bootstrap.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Auto Bootstrap
on: [push]
permissions: write-all
env:
REPO: ${{ github.repository }}
jobs:
setup-project:
if: ${{ !contains (github.repository, '/BakaPluginTemplate') }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check Template
id: template
shell: pwsh
run: "Write-Output 'IS_TEMPLATE=$(Test-Path ${{ github.workspace }}/.github/TEMPLATE)' >> $env:GITHUB_OUTPUT"
- name: Rename Project
id: setup
if: ${{ steps.template.outputs.IS_TEMPLATE }} == 'true'
shell: pwsh
run: "& ${{ github.workspace }}/.github/bootstrap.ps1"
- name: Check for Commit
if: ${{ steps.setup.outputs.SETUP_SUCCESS }} == 'true'
uses: EndBug/add-and-commit@v9
with:
committer_name: setup-action
committer_email: 41898282+github-actions[bot]@users.noreply.github.com
message: 'build: initial setup'