Skip to content

Commit

Permalink
chore: Update cache cleanup workflow
Browse files Browse the repository at this point in the history
Update the cache cleanup workflow to run on ubuntu-latest and rename it to 'Cleanup Cache'.
Also, the workflow is triggered on pull request close and workflow dispatch.
Finally, it uses the openMF/mifos-mobile-github-actions cache cleanup action.
  • Loading branch information
niyajali committed Jan 22, 2025
1 parent 62fae6f commit 5589b52
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,17 +2,14 @@ name: Cleanup Cache

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

jobs:
cleanup:
runs-on: ubuntu-latest
steps:
- name: Run Cache Cleanup
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:
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:
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 5589b52

Please sign in to comment.