From 8c63cca049e85753f13a9f050bb327bae11db98b Mon Sep 17 00:00:00 2001 From: monotalk Date: Mon, 4 Dec 2023 02:44:01 +0900 Subject: [PATCH] Update send-release-info.yml (#11) --- .github/workflows/send-release-info.yml | 59 ++----------------------- 1 file changed, 3 insertions(+), 56 deletions(-) diff --git a/.github/workflows/send-release-info.yml b/.github/workflows/send-release-info.yml index c7ff7ac..54e9bea 100644 --- a/.github/workflows/send-release-info.yml +++ b/.github/workflows/send-release-info.yml @@ -7,59 +7,6 @@ jobs: runs-on: ubuntu-latest steps: - name: Get release info and Post Data - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - gh api graphql -f id="${{ github.event.release.node_id }}" -f query=' - query ($id: ID!) { - node(id: $id) { - ... on Release { - id - author { - login - } - description - isDraft - isPrerelease - databaseId - name - repository { - name - } - resourcePath - updatedAt - publishedAt - createdAt - tag { - name - } - tagCommit { - additions - deletions - } - tagName - url - } - } - }' | - jq -r '.data.node | - { - id: .id, - user: .author.login, - description: .description, - isDraft: .isDraft, - isPrerelease: .isPrerelease, - databaseId: .databaseId, - name: .name, - repositoryName: .repository.name, - resourcePath: .resourcePath, - publishedAt: .publishedAt, - updatedAt: .updatedAt, - createdAt: .createdAt, - additions: .tagCommit.additions, - deletions: .tagCommit.deletions, - tagName: .tagName, - url: .url - } | - @json' | - curl 'https://httpbin.org/post' -X POST -H 'accept: application/json' -H 'Content-Type: application/json' -d @- + - uses: kemsakurai/send-deployment-frequency-action/.github/actions/send-deployment-frequency@main + with: + web-hook-url: 'https://httpbin.org/post'