Add "Medical & Emergency Preparedness" guidance to the WordCamp Organizer Handbook (During WordCamp) #919
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: Close and label issue on publish comment | |
| on: | |
| issue_comment: | |
| types: [created, edited] | |
| jobs: | |
| publish-commment: | |
| runs-on: ubuntu-latest | |
| if: contains(github.event.comment.body, '//publish') | |
| steps: | |
| - name: Remove Labels | |
| if: contains(github.event.issue.labels.*.name, '[Content] Needs Co-host') | |
| shell: bash | |
| run: | | |
| gh issue edit -R "${{ github.repository }}" \ | |
| --remove-label "[Content] Needs Co-host" \ | |
| "${{ github.event.issue.number }}" | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| - name: Add Labels | |
| shell: bash | |
| run: | | |
| gh issue edit -R "${{ github.repository }}" \ | |
| --add-label "[Content] Published" \ | |
| "${{ github.event.issue.number }}" | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| - name: Close Issue | |
| shell: bash | |
| run: | | |
| gh issue close -R "${{ github.repository }}" \ | |
| --reason "completed" \ | |
| "${{ github.event.issue.number }}" | |
| env: | |
| GH_TOKEN: ${{ github.token }} |