From 2743f7e1e63c2531d970d1ff6d9216bd6d3b2b51 Mon Sep 17 00:00:00 2001 From: Israel Fruchter Date: Thu, 20 Jun 2024 13:55:48 +0300 Subject: [PATCH] feature(github): cache github issues status in S3 Ref: https://github.com/scylladb/qa-tasks/issues/1678 --- .github/workflows/cache-issues.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/cache-issues.yaml diff --git a/.github/workflows/cache-issues.yaml b/.github/workflows/cache-issues.yaml new file mode 100644 index 00000000000..6c90716c996 --- /dev/null +++ b/.github/workflows/cache-issues.yaml @@ -0,0 +1,29 @@ +name: Report remaining open issues +on: + schedule: + # Daily at 8:20 UTC + - cron: '20 8 * * *' + pull_request: + branches: + - master + push: + branches: + - master +jobs: + track_pr: + 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}} {{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}} {{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}} {{end}}' --repo scylladb/scylla-cluster-tests > issues/scylladb_scylla-cluster-tests.csv + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Upload file to bucket + uses: koraykoska/s3-upload-github-action@master@0.1.3 + env: + FILE: ./issues/ + S3_BUCKET: ${{ secrets.S3_BUCKET }} + S3_ACCESS_KEY_ID: ${{ secrets.S3_ACCESS_KEY_ID }} + S3_SECRET_ACCESS_KEY: ${{ secrets.S3_SECRET_ACCESS_KEY }}