Skip to content

style: Minor style fixes #4

style: Minor style fixes

style: Minor style fixes #4

Workflow file for this run

# GitHub Actions Workflow responsible for cleaning up the 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 cleaning process only if workflow is triggered by the non-"android-library-template" repository.
template-cleanup:
name: Template Cleanup
runs-on: ubuntu-latest
if: github.event.repository.name != 'android-library-template'
permissions:
contents: write
steps:
# Check out current repository
- name: Fetch Sources
uses: actions/checkout@v4
# Cleanup project
- name: Cleanup
run: |
./cleanup.sh "${GITHUB_REPOSITORY##*/}"
# 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 }}