Skip to content

small styling fixes (#545) #11

small styling fixes (#545)

small styling fixes (#545) #11

# GitHub Actions Workflow responsible for cleaning up the IntelliJ Platform Plugin Template repository from the template-specific files and configurations.
# This workflow is supposed to be triggered automatically when a new template-based repository has been created.
name: Template Cleanup
on:
push:
branches: [main]
jobs:
# Run a cleaning process only if the workflow is triggered by the non-"intellij-platform-plugin-template" repository.
template-cleanup:
name: Template Cleanup
runs-on: ubuntu-latest
if: github.event.repository.name != 'spirekey'
permissions:
contents: write
steps:
- uses: pnpm/action-setup@v3
with:
version: 9
# Check out the current repository
- name: Fetch Sources
uses: actions/checkout@v4
# Cleanup project
- name: Cleanup
run: |
rm -rf docs/
rm -rf examples/
rm -rf sdk/
rm -rf node_modules/
rm *.md
rm package.json
rm pnpm-lock.yaml
rm pnpm-workspace.yaml
rm turbo.json
mv ./spirekey/* ./
mv ./spirekey/.env* ./
pnpm rm @kadena/spirekey-sdk @kadena/spirekey-types
pnpm add @kadena/spirekey-sdk @kadena/spirekey-types
pnpm i
# Commit modified files
- name: Commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add .
git commit -m "Template cleanup"
# Push changes
- name: Push changes
uses: ad-m/github-push-action@master
with:
branch: main
github_token: ${{ secrets.GITHUB_TOKEN }}