diff --git a/.github/workflows/template-cleanup.yml b/.github/workflows/template-cleanup.yml index 54f212b..6e246d7 100644 --- a/.github/workflows/template-cleanup.yml +++ b/.github/workflows/template-cleanup.yml @@ -5,18 +5,17 @@ name: Template Cleanup on: push: - branches: - - main + branches: [main] jobs: - # Run cleaning process only if workflow is triggered by the non-JetBrains/intellij-platform-plugin-template repository. + # Run cleaning process only if 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 != 'intellij-platform-plugin-template' permissions: contents: write - if: github.event.repository.name != 'intellij-platform-plugin-template' steps: # Check out current repository