Skip to content

Commit

Permalink
chore: add with discussiond details
Browse files Browse the repository at this point in the history
  • Loading branch information
reinamora137 committed Sep 10, 2024
1 parent f9b36f3 commit 4a395e8
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/new_discussion_to_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,20 @@ jobs:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}

- name: Get discussion details
id: get-discussion
uses: actions/github-script@v6
with:
github-token: ${{ steps.generate_token.outputs.token }}
script: |
console.log('Event payload:', JSON.stringify(context.payload, null, 2));
const discussionId = context.payload.discussion.node_id;
console.log('Discussion ID:', discussionId);
return discussionId;
- name: Add to project
uses: actions/[email protected]
with:
project-url: https://github.com/orgs/stampchain-io/projects/3
github-token: ${{ steps.generate_token.outputs.token }}
github-token: ${{ steps.generate_token.outputs.token }}
content-id: ${{ steps.get-discussion.outputs.result }}

0 comments on commit 4a395e8

Please sign in to comment.