-
Notifications
You must be signed in to change notification settings - Fork 96
28 lines (27 loc) · 1.05 KB
/
cache-issues.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Cache issues status
on:
schedule:
- cron: '0 */6 * * *'
workflow_dispatch:
jobs:
collect_n_upload:
runs-on: ubuntu-latest
steps:
- run: |
mkdir -p issues
for repo in scylladb scylla-enterprise scylla-manager scylla-operator scylla-cluster-tests scylla-dtest qa-tasks scylla-tools-java ; do
gh issue list --state all --json number,state,labels --limit 30000 --template '{{range .}}{{.number}},{{.state}},{{range .labels}}{{.name}}|{{end}}{{println ""}}{{end}}' --repo scylladb/$repo > issues/scylladb_$repo.csv
done
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 }}
S3_KEY: 'issues'
FILE: ./issues