fix query request of issue listing (#1519)

Co-authored-by: rpkak <rpkak@users.noreply.github.com>
This commit is contained in:
rpkak 2021-07-28 03:34:37 +02:00 committed by GitHub
parent adc03e8119
commit 643a26b991
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ jobs:
- name: Create failure issue - name: Create failure issue
run: | run: |
if [[ "$(curl --url https://api.github.com/repos/${{ github.repository }}/issues --request GET --data '{"creator": "github-actions"}')" != *"\""* ]] if [[ "$(curl --url https://api.github.com/repos/${{ github.repository }}/issues?creator=github-actions --request GET)" != *"\""* ]]
then curl --request POST \ then curl --request POST \
--url https://api.github.com/repos/${{ github.repository }}/issues \ --url https://api.github.com/repos/${{ github.repository }}/issues \
--header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \ --header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \