Skip to content

Windows: תיקון ניווט מלוח המספרים במנוע Flutter (#5934) #2045

Windows: תיקון ניווט מלוח המספרים במנוע Flutter (#5934)

Windows: תיקון ניווט מלוח המספרים במנוע Flutter (#5934) #2045

name: Cleanup PR Caches

Check warning on line 1 in .github/workflows/cleanup_pr_caches.yml

View workflow run for this annotation

GitHub Actions / Cleanup PR Caches

Workflow execution policy warning (evaluate mode)

On December 2, 2026, GitHub will restrict `pull_request_target` on public repositories by default. To continue allowing the event trigger, configure an Actions policy. Learn more: https://gh.io/securely-using-pull_request_target#default-policy-for-pull_request_target
# cache של PR נגיש רק לאותו PR, ולכן אחרי סגירתו הוא רק תופס מכסה.
# pull_request_target: ב-PR מ-fork ה-token של pull_request הוא לקריאה בלבד.
# בטוח כאן כי אין checkout של קוד ה-PR.
on:
pull_request_target:
types: [closed]
permissions:
actions: write
jobs:
cleanup:
runs-on: ubuntu-latest
steps:
- name: Delete caches of the closed PR
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
run: gh cache delete --all --ref "refs/pull/${{ github.event.pull_request.number }}/merge" --succeed-on-no-caches