Skip to content

Commit

Permalink
chore: Simplify cache cleanup workflow (#36)
Browse files Browse the repository at this point in the history
Refactor the cache cleanup workflow to use a reusable workflow from the `openMF/mifos-mobile-github-actions` repository.

This change removes redundant steps and streamlines the workflow, making it more maintainable and efficient. It also ensures that the cleanup process is consistent across different projects that utilize the reusable workflow.
  • Loading branch information
niyajali authored Jan 22, 2025
1 parent 4de734f commit c998cb2
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/cache-cleanup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,15 @@ name: Cache Cleanup

on:
pull_request:
types: [closed]
types: [ closed ]
workflow_dispatch:

jobs:
cleanup:
name: Cache Cleanup
runs-on: ubuntu-latest
steps:
- name: Cleanup Caches
uses: openMF/mifos-mobile-github-actions/.github/workflows/cache-cleanup.yaml@main
with:
cleanup_pr: ${{ github.event_name == 'pull_request' && github.event.repository.private == true }}
cleanup_all: ${{ github.event_name == 'workflow_dispatch' }}
secrets:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: openMF/mifos-mobile-github-actions/.github/workflows/cache-cleanup.yaml@main
with:
cleanup_pr: ${{ github.event_name == 'pull_request' && github.event.repository.private == true }}
cleanup_all: ${{ github.event_name == 'workflow_dispatch' }}
secrets:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit c998cb2

Please sign in to comment.