diff --git a/.github/workflows/my-workflow.yml b/.github/workflows/my-workflow.yml index 66e1547..070f865 100644 --- a/.github/workflows/my-workflow.yml +++ b/.github/workflows/my-workflow.yml @@ -8,13 +8,18 @@ jobs: comment: runs-on: ubuntu-latest steps: - - uses: actions/github-script@0.8.0 - with: - github-token: ${{secrets.GITHUB_TOKEN}} - script: | + - uses: actions/github-script@0.8.0 + with: + github-token: ${{secrets.GITHUB_TOKEN}} + script: | github.issues.createComment({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - body: "🎉 You've created this issue comment using GitHub Script!!!" + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + body: "🎉 You've created this issue comment using GitHub Script!!!" }) + github.projects.createCard({ + column_id: 12270352, + content_id: context.payload.issue.id, + content_type: "Issue" + });