Skip to content

Commit a902f59

Browse files
authored
Specify owner&repo for gh cli
1 parent bba0e87 commit a902f59

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/issueSnapshot.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- run: |
11-
gh issue list --limit 1000 --search "is:issue is:open sort:reactions-+1-desc" --json number,url,reactionGroups,title,labels > $(echo $GITHUB_REPOSITORY | tr / _).$(date +"%Y-%m-%d").json
11+
gh issue list -F owner=$OWNER -F name=$REPO --limit 1000 --search "is:issue is:open sort:reactions-+1-desc" --json number,url,reactionGroups,title,labels > $REPO.$(date +"%Y-%m-%d").json
1212
env:
1313
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
14+
OWNER: ${{ github.repository_owner }}
15+
REPO: ${{ github.event.repository.name }}
1416
- uses: actions/upload-artifact@v3
1517
with:
1618
path: ./*.json

0 commit comments

Comments
 (0)