Skip to content

Commit ed7c11e

Browse files
authored
Upload issue dumps
1 parent 440ebc4 commit ed7c11e

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

.github/workflows/issueSnapshot.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,25 @@ on:
44
- cron: '0 8 1 * *'
55
workflow_dispatch:
66
jobs:
7-
track_pr:
7+
dump_issues:
88
runs-on: ubuntu-latest
99
steps:
10-
- run: |
10+
- name: Take issue snapshot
11+
run: |
1112
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
1213
env:
13-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1414
REPO: ${{ github.event.repository.name }}
15-
- uses: actions/upload-artifact@v3
15+
- name: Save artifacts
16+
uses: actions/upload-artifact@v3
1617
with:
1718
path: ./*.json
1819
retention-days: 1
20+
- name: Log in to Azure
21+
uses: azure/login@v1
22+
with:
23+
creds: ${{ secrets.AZURE_CREDS }}
24+
- name: Upload to Azure
25+
uses: azure/CLI@v1
26+
with:
27+
inlineScript: |
28+
az storage blob upload-batch --account-name ${{ vars.AZURE_STORAGE_ACCOUNT_NAME }} --auth-mode key -d ${{ vars.AZURE_STORAGE_CONTAINER_NAME }} -s ./*.json

0 commit comments

Comments
 (0)