Skip to content

try the action

try the action #3579

Workflow file for this run

name: interop
on:
push:
branches: ["s3-setup"]
jobs:
backblaze:
runs-on: ubuntu-latest
# These permissions are needed to interact with GitHub's OIDC Token endpoint.
permissions:
id-token: write
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: 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}'