Skip to content

Commit 22e8fe8

Browse files
committed
WIP: curl investigation
1 parent 9cc4eea commit 22e8fe8

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/pr-tagging.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ jobs:
2323
- name: Tag app authors
2424
env:
2525
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26-
PR_NUMBER: ${{ github.event.pull_request.number }}
27-
REPO: ${{ github.repository }} # this is the slug, so user/repo
26+
#PR_NUMBER: ${{ github.event.pull_request.number }}
27+
#REPO: ${{ github.repository }} # this is the slug, so user/repo
28+
COMMENT_URL: https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments
2829
run: |
2930
git diff --name-only origin/master... -- apps/ \
3031
| grep -o 'apps/[^/]*' \
@@ -41,10 +42,8 @@ jobs:
4142
done \
4243
| jq -Rsc '{body: .}' \
4344
| xargs -I{} curl \
44-
-fsSL \
45-
-H "Accept: application/vnd.github+json" \
46-
-H "Authorization: Bearer $GITHUB_TOKEN" \
45+
-fLsS \
46+
-H "Authorization: token $GITHUB_TOKEN" \
4747
-H "Content-Type: application/json" \
48-
-H "X-GitHub-Api-Version: 2022-11-28" \
4948
-d {} \
50-
"https://api.github.com/repos/$REPO/issues/$PR_NUMBER/comments"
49+
"$COMMENT_URL"

0 commit comments

Comments
 (0)