Skip to content

Commit

Permalink
feat: publish release.json from release-check (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
galargh authored Jul 24, 2024
1 parent ac71fcc commit 714af15
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/release-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -292,3 +292,26 @@ jobs:
recreate: true
message: ${{ steps.message.outputs.output }}
number: ${{ fromJSON(steps.pr.outputs.json).number }}
- name: Create release.json
if: steps.release.outputs.id != ''
id: json
env:
SOURCE: ${{ matrix.source }}
RELEASE: |
{
"draft": true,
"version": "${{ steps.version.outputs.tag }}",
"url": "${{ steps.release.outputs.url }}",
"id": "${{ steps.release.outputs.id }}",
"upload_url": "${{ steps.release.outputs.upload_url }}",
"assets": ${{ steps.release.outputs.assets }}
}
run: |
jq . <<< "$RELEASE" > release.json
sed 's/[":<>|*?\r\n\\\/]/_/g' <<< "$SOURCE" | xargs -I {} -0 echo "name={}" | tee -a $GITHUB_OUTPUT
- name: Upload release.json
if: steps.release.outputs.id != ''
uses: actions/upload-artifact@v4
with:
name: ${{ steps.json.outputs.name }}
path: release.json
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased
### Added
- publishing release.json from the release check workflow

## [1.0.5] - 2024-07-23
### Added
Expand Down

0 comments on commit 714af15

Please sign in to comment.