Skip to content

Commit

Permalink
Add cache clenup workflow (#35)
Browse files Browse the repository at this point in the history
* feat: Add cache cleanup workflow

- Close #31

This commit introduces a new workflow to automatically clean up GitHub Actions caches.

The workflow is triggered on pull request closure and can be manually dispatched. It utilizes the `cache-cleanup.yaml` action to remove caches, allowing for efficient cache management.
  • Loading branch information
niyajali authored Jan 22, 2025
1 parent 1c26e2a commit 4de734f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/cache-cleanup.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Cache Cleanup

on:
pull_request:
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 }}

0 comments on commit 4de734f

Please sign in to comment.