-
Notifications
You must be signed in to change notification settings - Fork 134
29 lines (29 loc) · 1 KB
/
issueSnapshot.yml
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
29
name: Take snapshot of open issues
on:
schedule:
- cron: '0 8 1 * *'
workflow_dispatch:
jobs:
dump_issues:
runs-on: ubuntu-latest
steps:
- name: Take issue snapshot
run: |
gh issue list -R $GITHUB_REPOSITORY --limit 1000 --search "is:issue is:open sort:reactions-+1-desc" --json number,url,reactionGroups,title,labels > $REPO.$(date +"%Y-%m-%d").json
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO: ${{ github.event.repository.name }}
- name: Save artifacts
uses: actions/upload-artifact@v3
with:
path: ./*.json
retention-days: 1
- name: Log in to Azure
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDS }}
- name: Upload to Azure
uses: azure/CLI@v1
with:
inlineScript: |
az storage blob upload-batch --account-name ${{ vars.AZURE_STORAGE_ACCOUNT_NAME }} --auth-mode login -d ${{ vars.AZURE_STORAGE_CONTAINER_NAME }} -s .