-
Notifications
You must be signed in to change notification settings - Fork 86
44 lines (35 loc) · 1.06 KB
/
initial-setup.yaml
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
36
37
38
39
40
41
42
43
name: Initial Setup of Repository
on:
create:
concurrency:
group: init-setup
cancel-in-progress: true
permissions:
actions: write
checks: write
contents: write
jobs:
init-setup:
if: github.run_number == 1 && github.event.repository.name != 'plentyshop-pwa'
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Remove unused files
run: |
rm -f .github/workflows/code-quality.yaml
rm -f apps/server/sonar-project.properties
rm -f apps/web/sonar-project.properties
rm -f .github/workflows/build-and-deploy.yaml
rm -f .github/workflows/initial-setup.yaml
rm -f .github/CODEOWNERS
rm -f .dockerignore
rm -rf .vuestorefrontcloud
- name: Commit changed files
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "chore: initial setup of repository"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}