File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -12,16 +12,21 @@ jobs:
12
12
contents : read
13
13
env :
14
14
LOGNAME : ${{ needs.config.outputs.logname }}
15
+ BUCKET : " quic-interop-runner"
15
16
steps :
16
17
- uses : actions/checkout@v3
17
18
- uses : actions/setup-python@v4
18
19
with :
19
20
python-version : 3.8
20
21
- run : echo "foobar" > result.json
21
- - name : Configure S3 credentials
22
- uses : aws-actions/configure-aws-credentials@v4
23
- with :
24
- aws-access-key-id : ${{ secrets.BACKBLAZE_KEY_ID }}
25
- aws-secret-access-key : ${{ secrets.BACKBLAZE_APPLICATION_KEY }}
26
- aws-region : us-east-2 # what the hell
27
- - run : aws s3 ls --endpoint-url=https://s3.us-west-000.backblazeb2.com
22
+ - name : Install b2 cli
23
+
24
+ env :
25
+ B2_APPLICATION_KEY_ID : ${{ secrets.BACKBLAZE_KEY_ID }}
26
+ B2_APPLICATION_KEY : ${{ secrets.BACKBLAZE_APPLICATION_KEY }}
27
+ - name : upload a file
28
+ run : |
29
+ b2 ls --long ${{ env.BUCKET }}
30
+ b2 ls --long ${{ env.BUCKET}} | awk -v days=3 -v today=$(date +%s) '$1=="upload" && (today - $3) > days*86400 {print $4}'
31
+
32
+
You can’t perform that action at this time.
0 commit comments