Skip to content

Commit

Permalink
Update send-release-info.yml (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
kemsakurai authored Dec 3, 2023
1 parent 0959198 commit 8c63cca
Showing 1 changed file with 3 additions and 56 deletions.
59 changes: 3 additions & 56 deletions .github/workflows/send-release-info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

0 comments on commit 8c63cca

Please sign in to comment.