Skip to content

Merge update/gradle-9 into main #21

Merge update/gradle-9 into main

Merge update/gradle-9 into main #21

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
permissions:
contents: write
jobs:
template-cleanup:
name: Template Cleanup
runs-on: ubuntu-latest
if: github.event.repository.name != 'compose-android-template'
steps:
# Check out current repository
- name: Fetch Sources
uses: actions/checkout@v5
# Setup Java
- uses: actions/setup-java@v5
with:
distribution: 'zulu'
java-version: '17'
# Setup Gradle
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
# Cleanup project
- name: Cleanup
run: ./gradlew templateCleanup
# Commit modified files
- name: Commit files
run: |
git config --local user.email "action@github.com"
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 }}