Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 68.6k
'cleanup caches' example workflow is wrong and harmful! #23600
Copy link
Copy link
Closed
Labels
actionsThis issue or pull request should be reviewed by the docs actions teamThis issue or pull request should be reviewed by the docs actions teamcontentThis issue or pull request belongs to the Docs Content teamThis issue or pull request belongs to the Docs Content teamwaiting for reviewIssue/PR is waiting for a writer's reviewIssue/PR is waiting for a writer's review
Description
Activity
Metadata
Metadata
Assignees
Labels
actionsThis issue or pull request should be reviewed by the docs actions teamThis issue or pull request should be reviewed by the docs actions teamcontentThis issue or pull request belongs to the Docs Content teamThis issue or pull request belongs to the Docs Content teamwaiting for reviewIssue/PR is waiting for a writer's reviewIssue/PR is waiting for a writer's review
Code of Conduct
What article on docs.github.com is affected?
https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#force-deleting-cache-entries
Lifted from:
The workflow that is supposed to delete PR-caches deletes caches from
master/base branch:docs/content/actions/using-workflows/caching-dependencies-to-speed-up-workflows.md
Lines 330 to 347 in 4f05492
This looks logical, but seems to be wrong. If invoked by a closing PR, BRANCH ends up to be the base branch, e.g.
master. This job will then remove exactly the wrong caches.Should be fixed immediately by some knowledgeable person. Or at least add the disclaimer I suggested in the PR.
Evidence here: https://github.com/agda/agda/actions/runs/4025940394/jobs/6919801891#step:3:5
(Note: these logs will be removed by github after some time.)
What part(s) of the article would you like to see updated?
See above.
Additional information
No response