Skip to content

Commit

Permalink
Update send-release-info.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kemsakurai authored Nov 14, 2023
1 parent d75fc62 commit 41ec538
Showing 1 changed file with 53 additions and 1 deletion.
54 changes: 53 additions & 1 deletion .github/workflows/send-release-info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,56 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo '${{ toJson(github.event.release) }}' | curl 'https://httpbin.org/post' -X POST -H 'accept: application/json' -H 'Content-Type: application/json' -d @-
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 @-

0 comments on commit 41ec538

Please sign in to comment.