Skip to content

Commit

Permalink
try the action
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann committed Oct 7, 2023
1 parent e713b87 commit d006a24
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/interop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,21 @@ jobs:
contents: read
env:
LOGNAME: ${{ needs.config.outputs.logname }}
BUCKET: "quic-interop-runner"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.8
- run: echo "foobar" > result.json
- name: Configure S3 credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.BACKBLAZE_KEY_ID }}
aws-secret-access-key: ${{ secrets.BACKBLAZE_APPLICATION_KEY }}
aws-region: us-east-2 # what the hell
- run: aws s3 ls --endpoint-url=https://s3.us-west-000.backblazeb2.com
- name: Install b2 cli
uses: sylwit/[email protected]
env:
B2_APPLICATION_KEY_ID: ${{ secrets.BACKBLAZE_KEY_ID }}
B2_APPLICATION_KEY: ${{ secrets.BACKBLAZE_APPLICATION_KEY }}
- name: upload a file
run: |
b2 ls --long ${{ env.BUCKET }}
b2 ls --long ${{ env.BUCKET}} | awk -v days=3 -v today=$(date +%s) '$1=="upload" && (today - $3) > days*86400 {print $4}'

0 comments on commit d006a24

Please sign in to comment.