Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Appveyor PR commit SHA wrong #420

Open
Flamefire opened this issue Apr 6, 2021 · 4 comments
Open

Appveyor PR commit SHA wrong #420

Flamefire opened this issue Apr 6, 2021 · 4 comments

Comments

@Flamefire
Copy link

Flamefire commented Apr 6, 2021

It looks like the appveyor commit SHA needs similar fixing as the Github Actions or Azure one.

In https://ci.appveyor.com/project/Flamefire/nowide-fr98b/builds/38560544/job/kb2fl8uw27ued5qs the commit is detected as b6c2ea6c45b76b760189abe5246df472e701a1f9 while it should be 0c853652e5409b32ef8d07939d93c4c5d7e55094

See the same CI on GHA: https://github.com/boostorg/nowide/pull/131/checks?check_run_id=2272049938

The correct env var for PRs seems to be APPVEYOR_PULL_REQUEST_HEAD_COMMIT

@blueyed
Copy link
Contributor

blueyed commented Apr 8, 2021

Do you know if this is a regression by chance?

@Flamefire
Copy link
Author

It might be. IIRC it did work some time ago, but can't tell for sure.

I tested the APPVEYOR_PULL_REQUEST_HEAD_COMMIT variable and that did work

Seemingly the Github action had a similar issue: codecov/codecov-action#190 and they used a similar variable: codecov/codecov-action@e77dab6

@thomasrockhu
Copy link
Contributor

@Flamefire do you have another instance of this? I wonder if this has something to do with the commit SHAs on forks

@Flamefire
Copy link
Author

I haven't tested it further as I believe that all evidence suggests that APPVEYOR_PULL_REQUEST_HEAD_COMMIT is the correct variable to use and I don't see any downside.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants