Skip to content

Commit

Permalink
do not use curl
Browse files Browse the repository at this point in the history
  • Loading branch information
cortisiko committed Oct 18, 2024
1 parent cd18e71 commit f9ff20f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/add-e2e-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ on:
types: [opened, synchronize, reopened]

jobs:
add-label:
label-pr:
runs-on: ubuntu-latest

steps:
- name: Add Run Smoke Label to PR
- name: Apply labels to PR
run: |
curl -X POST \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
gh api \
--method POST \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/labels \
-d '{"labels":["Run Smoke E2E"]}'
/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/labels \
-f labels='["Run Smoke E2E"]'

0 comments on commit f9ff20f

Please sign in to comment.