Skip to content

Commit

Permalink
Merge pull request #19 from sammyfilly/sammyfilly-patch-2
Browse files Browse the repository at this point in the history
Update pr-clean-caches.yml
  • Loading branch information
X-oss-byte committed Jul 29, 2023
2 parents 2d3b00a + 49f3c70 commit af3ce1e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pr-clean-caches.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Cleanup branch caches
name: branch caches
on:
pull_request:
types: [opened, closed, reopened, synchronize]
Expand All @@ -8,7 +8,7 @@ on:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
cancel-in-progress: false

permissions:
actions: write
Expand All @@ -29,7 +29,7 @@ jobs:
echo "Fetching list of cache key"
cacheKeysForPR=$(gh actions-cache list -R "$REPO" -B "$BRANCH" --limit 100 | cut -f 1)
save keys
## Setting this to not fail the workflow while deleting cache keys.
set +e
echo "Deleting caches..."
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ concurrency:

permissions:
actions: write
contents: read
pull-requests: read
contents: write
pull-requests: write

jobs:
determine_jobs:
Expand All @@ -28,12 +28,11 @@ jobs:
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: "github-actions[bot]"
body-includes: "<!-- CI COMMENT -->"

body-includes: "<!-- CI COMMENT -->
- name: Create or update PR comment
if: github.event_name == 'pull_request' && steps.comment.outputs.comment-id != ''
uses: peter-evans/create-or-update-comment@v2
continue-on-error: true
continue-on-error: true but resolve am
with:
comment-id: ${{ steps.comment.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
Expand Down

0 comments on commit af3ce1e

Please sign in to comment.