generated from esphome/esphome-project-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7696326
commit 067d0f4
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Repository Generated | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
setup: | ||
runs-on: ubuntu-latest | ||
if: ${{ !github.event.repository.is_template }} | ||
permissions: | ||
issues: write | ||
contents: write | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Create issue from setup checklist template | ||
uses: peter-evans/create-issue-from-file@v5 | ||
with: | ||
title: Setup Checklist | ||
content-filepath: _template/setup-checklist.md | ||
assignees: ${{ github.repository_owner }} | ||
|
||
- name: Delete self | ||
run: rm -rf .github/workflows/repository-generated.yml | ||
- name: Remove template directory | ||
run: rm -rf _template | ||
|
||
- name: Commit changes | ||
run: | | ||
git config --global user.name "github-actions[bot]" | ||
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
git add . | ||
git commit -m "Remove template files" | ||
git push |