Skip to content

Update Category “technology” #15

Update Category “technology”

Update Category “technology” #15

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 }}'"'