Skip to content

feature(github): cache github issues status in S3 #11

feature(github): cache github issues status in S3

feature(github): cache github issues status in S3 #11

Workflow file for this run

name: Cache issues status
on:
schedule:
# Daily at 8:20 UTC
- cron: '20 8 * * *'
pull_request:
branches:
- master
push:
branches:
- master
jobs:
collect_n_upload:
runs-on: ubuntu-latest
steps:
- run: |
mkdir -p issues
gh issue list --state all --json number,state,labels --limit 30000 --template '{{range .}}{{.number}},{{.state}},{{range .labels}}{{.name}}|{{end}}{{println ""}}{{end}}' --repo scylladb/scylladb > issues/scylladb_scylladb.csv
gh issue list --state all --json number,state,labels --limit 30000 --template '{{range .}}{{.number}},{{.state}},{{range .labels}}{{.name}}|{{end}}{{println ""}}{{end}}' --repo scylladb/scylla-enterprise > issues/scylladb_scylla-enterprise.csv
gh issue list --state all --json number,state,labels --limit 30000 --template '{{range .}}{{.number}},{{.state}},{{range .labels}}{{.name}}|{{end}}{{println ""}}{{end}}' --repo scylladb/scylla-cluster-tests > issues/scylladb_scylla-cluster-tests.csv
env:
GH_TOKEN: ${{ secrets.ISSUE_ASSIGNMENT_TO_PROJECT_TOKEN }}
- name: Upload folder to bucket
uses: a-sync/[email protected]
with:
args: --recursive
env:
AWS_ACCESS_KEY_ID: ${{ secrets.S3_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.S3_AWS_SECRET_ACCESS_KEY }}
AWS_REGION: 'us-east-1'
S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
FILE: ./issues