File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ concurrency:
1010 group : ${{ github.workflow }}-${{ github.ref }}
1111 cancel-in-progress : true
1212
13+ env :
14+ FULL_VALIDATION_LABEL : ' full validation'
15+ QUICK_VALIDATION_LABEL : ' quick validation'
1316
1417jobs :
1518 validate :
@@ -31,20 +34,19 @@ jobs:
3134 sleep 30
3235 exit 0
3336
34- - name : Remove label
37+ - name : ' Remove label'
3538 if : always()
3639 run : |
3740 PR_NUMBER=${{ github.event.pull_request.number }}
3841 REPO=${{ github.repository }}
39- LABEL="full validation"
4042
4143 # URL-encodes the label by replacing special characters with their percent-encoded equivalents.
42- ENCODED_LABEL =$(printf "%s" "$LABEL " | sed -e 's/ /%20/g' -e 's/:/%3A/g' -e 's/\//%2F/g' -e 's/?/%3F/g' -e 's/&/%26/g' -e 's/=/%3D/g')
44+ ENCODED_FULL_VALIDATION_LABEL =$(printf "%s" "${{ env.FULL_VALIDATION_LABEL }} " | sed -e 's/ /%20/g' -e 's/:/%3A/g' -e 's/\//%2F/g' -e 's/?/%3F/g' -e 's/&/%26/g' -e 's/=/%3D/g')
4345
44- echo "https://api.github.com/repos/$REPO/issues/$PR_NUMBER/labels/$ENCODED_LABEL "
46+ echo "https://api.github.com/repos/$REPO/issues/$PR_NUMBER/labels/${{ env.FULL_VALIDATION_LABEL }} "
4547 curl -X DELETE -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
4648 -H "Accept: application/vnd.github.v3+json" \
47- "https://api.github.com/repos/$REPO/issues/$PR_NUMBER/labels/${ENCODED_LABEL }"
49+ "https://api.github.com/repos/$REPO/issues/$PR_NUMBER/labels/${{ env.FULL_VALIDATION_LABEL } }"
4850
4951 static-check :
5052 name : ' See if Static Analysis should run'
You can’t perform that action at this time.
0 commit comments