chore: simplify rollup.config.mjs
#2501
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: Add Staff Label | |
| on: | |
| issues: | |
| types: [opened, reopened] | |
| pull_request: | |
| types: [opened, reopened] | |
| jobs: | |
| add-staff-label: | |
| if: ${{ github.repository == 'primer/react' }} | |
| runs-on: ubuntu-latest | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 | |
| - name: Add label to issue | |
| if: ${{ github.event.issue.author_association == 'MEMBER' }} | |
| run: | | |
| gh issue edit ${{github.event.issue.html_url}} --add-label staff | |
| - name: Add label to pull_request | |
| if: ${{ github.event.pull_request.author_association == 'MEMBER' }} | |
| run: | | |
| gh pr edit ${{github.event.pull_request.html_url}} --add-label staff |