Update Element “access__available_for_resale” #6
Workflow file for this run
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
# File: .github/workflows/pull-request.yml | |
name: Pull Request Workflow | |
on: | |
pull_request: | |
branches: [main] | |
jobs: | |
create-discussion: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set variables | |
id: vars | |
run: | | |
echo "::set-output name=pr_title::${{ github.event.pull_request.title }}" | |
echo "::set-output name=pr_body::${{ github.event.pull_request.body }} (Link: ${{ github.event.pull_request.html_url }})" | |
- name: Run curl command | |
run: | | |
curl -H "Authorization: bearer ${{secrets.BEARER_TOKEN}}" -X POST -d " { | |
\"query\": \"mutation { | |
createDiscussion( | |
input: {repositoryId: \\\"R_kgDOHibgUQ\\\", categoryId: \\\"DIC_kwDOHibgUc4Cbmpw\\\", body: \\\"${{ steps.vars.outputs.pr_body }}\\\", title: \\\"${{ steps.vars.outputs.pr_title }}\\\"} | |
) { | |
discussion { | |
id | |
} | |
} | |
}\" | |
}" https://api.github.com/graphql |