Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 20abc48

Browse files
Update caching-dependencies-to-speed-up-workflows.md (#38767)
Co-authored-by: Sharra-writes <[email protected]>
1 parent 377bf5e commit 20abc48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/actions/writing-workflows/choosing-what-your-workflow-does/caching-dependencies-to-speed-up-workflows.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ The following example workflow uses `gh cache` to delete up to 100 caches create
333333
To run the following example on cross-repository pull requests or pull requests from forks, you can trigger the workflow with the `pull_request_target` event. If you do use `pull_request_target` to trigger the workflow, there are security considerations to keep in mind. For more information, see [AUTOTITLE](/actions/using-workflows/events-that-trigger-workflows#pull_request_target).
334334

335335
```yaml
336-
name: cleanup caches by a branch
336+
name: Cleanup github runner caches on closed pull requests
337337
on:
338338
pull_request:
339339
types:
@@ -347,7 +347,7 @@ jobs:
347347
steps:
348348
- name: Cleanup
349349
run: |
350-
echo "Fetching list of cache key"
350+
echo "Fetching list of cache keys"
351351
cacheKeysForPR=$(gh cache list --ref $BRANCH --limit 100 --json id --jq '.[].id')
352352
353353
## Setting this to not fail the workflow while deleting cache keys.

0 commit comments

Comments
 (0)