Apply URL Encoding to API Product Name During Export via API CTL Tool #307
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Remove github integration action trigger label | |
| on: | |
| pull_request_target: | |
| types: | |
| - synchronize | |
| - closed | |
| concurrency: | |
| group: apim-apk-agent-${{ github.event.number || github.run_id }} | |
| cancel-in-progress: true | |
| jobs: | |
| remove-label: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v2 | |
| - name: Remove label | |
| run: | | |
| TOKEN="${{ secrets.GITHUB_TOKEN }}" | |
| PR_NUMBER="${{ github.event.number }}" | |
| LABEL_TO_REMOVE="trigger-action" | |
| # Remove the label from the pull request | |
| curl -X DELETE \ | |
| -H "Authorization: token $TOKEN" \ | |
| "https://api.github.com/repos/${{ github.repository }}/issues/${PR_NUMBER}/labels/${LABEL_TO_REMOVE}" |