Skip to content

Github Action running "pnpm format" #7

Github Action running "pnpm format"

Github Action running "pnpm format" #7

name: pnpm-format-label
on:
pull_request:
types: [labeled]
jobs:
proto:
if: ${{ github.event.label.name == 'pnpm format' }}
uses: ./.github/workflows/pnpm-format.yml
secrets: inherit
rm:
if: ${{ github.event.label.name == 'pnpm format' }}
runs-on: ubuntu-latest
steps:
- name: Remove the label
run: |
LABEL=$(echo "${{ github.event.label.name }}" | sed 's/ /%20/g')
curl -X DELETE \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/labels/$LABEL