From 1d4318c1e95b7d0a00a3a232521c1bfe6efaefa7 Mon Sep 17 00:00:00 2001 From: Tadas Petra Date: Sun, 8 Dec 2024 06:37:43 -0600 Subject: [PATCH] Revert "Using a different action" This reverts commit 691b27a3cdc9e1f98128f66e16ad0a8ad891193b. --- .github/workflows/create-discussions.yml | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/.github/workflows/create-discussions.yml b/.github/workflows/create-discussions.yml index 1106305..61467f9 100644 --- a/.github/workflows/create-discussions.yml +++ b/.github/workflows/create-discussions.yml @@ -102,25 +102,14 @@ jobs: echo "year=$(date +%Y)" >> $GITHUB_OUTPUT - name: Create Discussion - uses: octokit/request-action@v2.x - id: create_discussion + uses: abirismyname/create-discussion@v1.2.0 with: - route: POST /graphql - query: | - mutation createDiscussion($repositoryId: ID!, $categoryId: ID!, $title: String!, $body: String!) { - createDiscussion(input: {repositoryId: $repositoryId, categoryId: $categoryId, title: $title, body: $body}) { - discussion { - id - url - } - } - } - repositoryId: ${{ secrets.REPO_ID }} - categoryId: ${{ secrets.CAT_ID }} - title: "Vote ${{ steps.app-data.outputs.year }}: ${{ steps.app-data.outputs.name }} by ${{ steps.app-data.outputs.author }}" + title: "Vote 2024: ${{ steps.app-data.outputs.name }} by ${{ steps.app-data.outputs.author }}" body: | **Vote for this app by giving it an upvote!** ${{ steps.app-data.outputs.description }} + repository-id: ${{ secrets.REPO_ID }} + category-id: ${{ secrets.CAT_ID }} env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}