Skip to content

Commit 9bf283a

Browse files
committed
Use "build" instead of "release" to avoid overloading
1 parent c23f6f7 commit 9bf283a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,15 @@ jobs:
5151
const latest34ASan = "${{ steps.latest_commit_3_4_asan.outputs.commit }}"
5252
const { owner, repo } = context.repo
5353
let { data: release } = await github.rest.repos.getLatestRelease({ owner, repo })
54-
const latestReleaseCommit = release.body.split('\n')[0].split('@')[1].trim()
54+
const latestBuildCommit = release.body.split('\n')[0].split('@')[1].trim()
5555
// Entry in body may not exist, but if it doesn't the should_build_3_4_asan is still correct
56-
const latestRelease34ASanCommit = ((release.body.split('\n')[1] ?? "").split('@')[1] ?? "").trim()
57-
console.log(` Latest release commit: ${latestReleaseCommit}`)
58-
console.log(` Latest ruby commit: ${latestDevCommit}`)
59-
console.log(`Latest 3.4-asan release commit: ${latestRelease34ASanCommit}`)
60-
console.log(` Latest 3.4-asan: ${latest34ASan}`)
61-
core.setOutput('should_build', latestReleaseCommit !== latestDevCommit)
62-
core.setOutput('should_build_3_4_asan', latestRelease34ASanCommit !== latest34ASan)
56+
const latestBuild34ASanCommit = ((release.body.split('\n')[1] ?? "").split('@')[1] ?? "").trim()
57+
console.log(` Latest build commit: ${latestBuildCommit}`)
58+
console.log(` Latest ruby commit: ${latestDevCommit}`)
59+
console.log(`Latest 3.4-asan build commit: ${latestBuild34ASanCommit}`)
60+
console.log(` Latest 3.4-asan: ${latest34ASan}`)
61+
core.setOutput('should_build', latestBuildCommit !== latestDevCommit)
62+
core.setOutput('should_build_3_4_asan', latestBuild34ASanCommit !== latest34ASan)
6363
core.setOutput('previous_release', release.tag_name)
6464
- name: Compute build and reuse matrix
6565
uses: actions/github-script@v8

0 commit comments

Comments
 (0)