From 5589b52252e6f9874b8770ad333e4a41e5f74612 Mon Sep 17 00:00:00 2001 From: Sk Niyaj Ali Date: Wed, 22 Jan 2025 16:24:07 +0530 Subject: [PATCH] chore: Update cache cleanup workflow 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. --- .github/workflows/cache-cleanup.yaml | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/.github/workflows/cache-cleanup.yaml b/.github/workflows/cache-cleanup.yaml index 4652b1c..399eb2f 100644 --- a/.github/workflows/cache-cleanup.yaml +++ b/.github/workflows/cache-cleanup.yaml @@ -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 }} \ No newline at end of file + 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 }}