From cd18e714bc63d0dc080e1e9010549139553c88ea Mon Sep 17 00:00:00 2001 From: Curtis Date: Fri, 18 Oct 2024 13:59:26 -0400 Subject: [PATCH] add run smoke label to pr --- .github/workflows/add-e2e-label.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/add-e2e-label.yml diff --git a/.github/workflows/add-e2e-label.yml b/.github/workflows/add-e2e-label.yml new file mode 100644 index 00000000000..96c3517fb0d --- /dev/null +++ b/.github/workflows/add-e2e-label.yml @@ -0,0 +1,18 @@ +name: Add E2E Label to PR + +on: + pull_request: + types: [opened, synchronize, reopened] + +jobs: + add-label: + runs-on: ubuntu-latest + + steps: + - name: Add Run Smoke Label to PR + run: | + curl -X POST \ + -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ + -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"]}'