Skip to content

Commit

Permalink
Update create_issue.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dsoldev authored Sep 20, 2023
1 parent 9015436 commit f24a4f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/create_issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
- name: Check for open issues
id: check_issues
run: |
ISSUES=$(curl -H "Authorization: token ${{ secrets.TESTE }}" \
ISSUES=$(curl -H "Authorization: token ${{ secrets.INSPER_BOT }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/${{ github.repository }}/issues?state=open)
https://api.github.com/repos/${{ github.repository }}/issues?state=all)
COUNT=$(echo "$ISSUES" | jq '. | length')
if [[ "$COUNT" -eq 0 ]]; then
echo "::set-output name=has_issues::false"
Expand All @@ -30,7 +30,7 @@ jobs:
if: steps.check_issues.outputs.has_issues == 'false'
uses: actions/github-script@v3
with:
github-token: ${{secrets.TESTE}}
github-token: ${{secrets.INSPER_BOT}}
script: |
const fs = require('fs');
const path = require('path');
Expand Down

0 comments on commit f24a4f5

Please sign in to comment.