Skip to content

Commit

Permalink
Display SHA in release summary for daily builds
Browse files Browse the repository at this point in the history
  • Loading branch information
kewisch committed Oct 21, 2024
1 parent 6897eee commit a8d0fc8
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/shippable_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ jobs:
case "${APP_NAME}" in
thunderbird) APP_SHA=$THUNDERBIRD_SHA ;;
k9mail) APP_SHA=$K9MAIL_SHA ;;
*) APP_SHA=$GITHUB_SHA ;;
esac
echo "app_sha=$APP_SHA" >> $GITHUB_OUTPUT
Expand Down Expand Up @@ -632,18 +633,25 @@ jobs:
ghReleaseUrl: ${{ steps.publish_gh.outputs.url }}
playTargetTrack: ${{ matrix.playTargetTrack }}
applicationId: ${{ steps.pkginfo.outputs.APPLICATION_ID }}
releaseTarget: ${{ matrix.releaseTarget }}
app_sha: ${{ steps.sha.outputs.app_sha }}
with:
script: |
await core.summary
.addHeading(`${process.env.fullVersionName} (${process.env.applicationId})`, 2)
.addRaw(`Tag ${process.env.tagName} at `)
.addLink(process.env.app_sha, `${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/commit/${process.env.app_sha}`)
.addEOL()
.write();
if (process.env.ghReleaseUrl) {
if (!process.env.releaseTarget) {
await core.summary
.addRaw(`Artifact-only build at `)
.addLink(process.env.app_sha, `${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/commit/${process.env.app_sha}`)
.addEOL()
.write();
} else if (process.env.ghReleaseUrl) {
await core.summary
.addRaw(`Tag ${process.env.tagName} at `)
.addLink(process.env.app_sha, `${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/commit/${process.env.app_sha}`)
.addEOL()
.addRaw(`Released to Github at `)
.addLink(process.env.ghReleaseUrl, process.env.ghReleaseUrl)
.addEOL()
Expand Down

0 comments on commit a8d0fc8

Please sign in to comment.