Skip to content

Commit d006a24

Browse files
try the action
1 parent e713b87 commit d006a24

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

.github/workflows/interop.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,21 @@ jobs:
1212
contents: read
1313
env:
1414
LOGNAME: ${{ needs.config.outputs.logname }}
15+
BUCKET: "quic-interop-runner"
1516
steps:
1617
- uses: actions/checkout@v3
1718
- uses: actions/setup-python@v4
1819
with:
1920
python-version: 3.8
2021
- 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+
uses: sylwit/[email protected]
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+

0 commit comments

Comments
 (0)