Skip to content

Commit

Permalink
Merge pull request #105 from takanotume24/feature/104__skip_delete_cache
Browse files Browse the repository at this point in the history
Add conditional check for branch cleanup
  • Loading branch information
takanotume24 authored Dec 4, 2024
2 parents 9ad83f8 + 0360308 commit 2355e27
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/cleanup-chaches-by-a-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:

jobs:
cleanup:
if: ${{ !(github.event.pull_request.base.ref == 'master' && github.event.pull_request.head.ref == 'develop') }}
runs-on: ubuntu-latest
steps:
- name: Cleanup
Expand All @@ -24,4 +25,4 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
BRANCH: refs/pull/${{ github.event.pull_request.number }}/merge
BRANCH: refs/pull/${{ github.event.pull_request.number }}/merge

0 comments on commit 2355e27

Please sign in to comment.