Skip to content

Fix GITHUB_REF is wrong for jobs triggered with closed PRs#523

Merged
cshuaimin merged 2 commits intomasterfrom
fix-github-ref
Mar 24, 2023
Merged

Fix GITHUB_REF is wrong for jobs triggered with closed PRs#523
cshuaimin merged 2 commits intomasterfrom
fix-github-ref

Conversation

@cshuaimin
Copy link
Copy Markdown
Contributor

@cshuaimin cshuaimin commented Mar 24, 2023

GitHub 这太坑了……先是 GITHUB_SHA 指向的是 PR 要合并到的 commit,而不是 PR 最新的 commit(在 push 等其他事件中却指向的是要 push 的 commit);再是 GITHUB_REF 在创建 PR 的时候是对的,但合并 PR 的时候就不对了……文档中只字未提,只有遇到了才能发现……

@cshuaimin cshuaimin requested a review from jysperm March 24, 2023 07:44
@cshuaimin cshuaimin merged commit df17ad1 into master Mar 24, 2023
@cshuaimin cshuaimin deleted the fix-github-ref branch March 24, 2023 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants