Skip to content

Take snapshot of open issues #21

Take snapshot of open issues

Take snapshot of open issues #21

Workflow file for this run

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 .