Skip to content

test: added nested iframe test support in cypress and external 3ds ne… #290

test: added nested iframe test support in cypress and external 3ds ne…

test: added nested iframe test support in cypress and external 3ds ne… #290

name: Update PR Label to Closed
on:
pull_request:
types:
- closed
jobs:
pr-label:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Remove all labels
run: |
PR_NUMBER=$(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH")
curl -L \
-X DELETE \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/${GITHUB_REPOSITORY}/issues/${PR_NUMBER}/labels
- name: Add new label
run: |
export GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
gh pr edit ${{ github.event.pull_request.number }} --add-label "Closed"