Skip to content

Commit

Permalink
fix: action should use the same tag as the workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
RadxaYuntian committed Jul 9, 2024
1 parent 8285781 commit 156ded4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/actions/build/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ inputs:
timestamp:
required: false
default: b${{ github.run_number }}
tag_name:
required: false
default: rsdk-b${{ github.run_number }}
override-kernel:
required: false
override-firmware:
Expand Down Expand Up @@ -96,12 +99,12 @@ runs:
if: inputs.release-id != '' && inputs.github-token != ''
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ inputs.timestamp }}
tag_name: ${{ inputs.tag_name }}
append_body: true
body: |
## ${{ steps.prep.outputs.BUILD_TUPLE }}
[Download Image](https://github.com/radxa-build/${{ inputs.product }}/releases/download/${{ inputs.timestamp }}/${{ steps.prep.outputs.BUILD_TUPLE }}_${{ inputs.timestamp }}.output.img.xz)
[Download Image](https://github.com/radxa-build/${{ inputs.product }}/releases/download/${{ inputs.tag_name }}/${{ steps.prep.outputs.BUILD_TUPLE }}_${{ inputs.timestamp }}.output.img.xz)
### SHA-512 Checksum
Expand All @@ -110,14 +113,14 @@ runs:
if: inputs.release-id != '' && inputs.github-token != ''
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ inputs.timestamp }}
tag_name: ${{ inputs.tag_name }}
append_body: true
body_path: out/${{ steps.prep.outputs.BUILD_TUPLE }}/${{ steps.prep.outputs.BUILD_TUPLE }}_${{ inputs.timestamp }}.sha512sum
- name: Append changelog footer
if: inputs.release-id != '' && inputs.github-token != ''
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ inputs.timestamp }}
tag_name: ${{ inputs.tag_name }}
append_body: true
body: |
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ function(
{
"test-repo": true,
timestamp: "t${{ github.run_number }}",
tag_name: release_info(variant).tag_name,
}
else
{},
Expand Down

0 comments on commit 156ded4

Please sign in to comment.