Proposed Taxonomy Edits #17
This file contains 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: Proposed Taxonomy Edits | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
create_discussion: | |
runs-on: ubuntu-latest | |
permissions: | |
actions: write | |
issues: write | |
discussions: write | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Create discussion | |
run: | | |
curl -X POST -H "Accept: application/vnd.github.v3+json" -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" https://api.github.com/Helpful-Places/teams/dtpr/discussions -d '{"title": "'${{ github.event.pull_request.title }}'", "category_name": "Proposed Taxonomy Edits", "body": "'${{ github.event.pull_request.body }}\n\nLink to pull request: ${{ github.event.pull_request.html_url }}'"' |