File tree Expand file tree Collapse file tree 3 files changed +35
-2
lines changed Expand file tree Collapse file tree 3 files changed +35
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : Cleanup Cache
2
+ on :
3
+ pull_request :
4
+ types :
5
+ - closed
6
+
7
+ jobs :
8
+ cleanup_cache :
9
+ runs-on : macOS-latest
10
+ steps :
11
+ - name : Check out code
12
+ uses : actions/checkout@v3
13
+
14
+ - name : Cleanup
15
+ run : |
16
+ gh extension install actions/gh-actions-cache
17
+
18
+ REPO=${{ github.repository }}
19
+ BRANCH="refs/pull/${{ github.event.pull_request.number }}/merge"
20
+
21
+ echo "Fetching list of cache key"
22
+ cacheKeysForPR=$(gh actions-cache list -R $REPO -B $BRANCH -L 100 | cut -f 1 )
23
+
24
+ ## Setting this to not fail the workflow while deleting cache keys.
25
+ set +e
26
+ echo "Deleting caches..."
27
+ for cacheKey in $cacheKeysForPR
28
+ do
29
+ gh actions-cache delete $cacheKey -R $REPO -B $BRANCH --confirm
30
+ done
31
+ echo "Done"
32
+ env :
33
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ concurrency:
11
11
jobs :
12
12
Test :
13
13
name : Test
14
- runs-on : macOS-12
14
+ runs-on : macOS-latest
15
15
steps :
16
16
- uses : actions/checkout@v3
17
17
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ enum Constant {
74
74
75
75
// MARK: - Device
76
76
77
- static let devices = [ " iPhone 12 Pro Max " ]
77
+ static let devices = [ " iPhone 15 Pro " ]
78
78
}
79
79
80
80
extension Constant {
You can’t perform that action at this time.
0 commit comments