mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-12-02 10:52:20 +01:00
fix wrong expression & url
Signed-off-by: sy-b <94835959+sy-b@users.noreply.github.com>
This commit is contained in:
1 file changed
+2
-2
@@ -23,7 +23,7 @@ jobs:
|
|||||||
add-label-duplicate:
|
add-label-duplicate:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: |
|
if: |
|
||||||
contains(github.event.comment.body, "/duplicate") == '/add' && (
|
contains(github.event.comment.body, "/duplicate") && (
|
||||||
github.event.comment.author_association == 'OWNER' ||
|
github.event.comment.author_association == 'OWNER' ||
|
||||||
github.event.comment.author_association == 'COLLABORATOR' ||
|
github.event.comment.author_association == 'COLLABORATOR' ||
|
||||||
github.event.comment.author_association == 'CONTRIBUTOR' )
|
github.event.comment.author_association == 'CONTRIBUTOR' )
|
||||||
@@ -34,5 +34,5 @@ jobs:
|
|||||||
-X POST \
|
-X POST \
|
||||||
-H "Accept: application/vnd.github+json" \
|
-H "Accept: application/vnd.github+json" \
|
||||||
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
|
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
|
||||||
https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/label \
|
https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/labels \
|
||||||
-d '{"labels":["duplicate"]}'
|
-d '{"labels":["duplicate"]}'
|
||||||
Reference in new issue
Block a user