-
-
Notifications
You must be signed in to change notification settings - Fork 372
43 lines (41 loc) · 1.14 KB
/
s3-cache.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Cache eviction
on:
workflow_dispatch:
inputs:
key:
description: Which cache to evict
required: true
default: '/'
type: choice
options:
- aarch64-apple-darwin
- aarch64-linux-ubuntu20
- x86_64-apple-darwin
- x86_64-freebsd
- x86_64-linux-centos7
- x86_64-linux-deb10
- x86_64-linux-deb11
- x86_64-linux-deb9
- x86_64-linux-fedora27
- x86_64-linux-fedora33
- x86_64-linux-mint19.3
- x86_64-linux-mint20.2
- x86_64-linux-ubuntu18.04
- x86_64-linux-ubuntu20.04
- x86_64-linux-ubuntu22.04
- /
jobs:
evict:
runs-on: ubuntu-latest
steps:
- name: Remove from S3
uses: vitorsgomes/s3-rm-action@master
with:
args: --recursive
env:
AWS_S3_ENDPOINT: https://${{ secrets.S3_HOST }}
AWS_S3_BUCKET: haskell-language-server
AWS_REGION: us-west-2
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
PATH_TO_DELETE: ${{ github.event.inputs.key }}