Skip to content

Conversation

@cameel
Copy link
Collaborator

@cameel cameel commented Apr 21, 2021

Github's docs on Environment Variables say:

GITHUB_REF
The branch or tag ref that triggered the workflow. For example, refs/heads/feature-branch-1. If neither a branch or tag is available for the event type, the variable will not exist.

Turns out this is not completely true. For example PR #90 is failing CI checks because GITHUB_REF is refs/pull/90/merge which is neither a tag nor a branch:

fatal: ambiguous argument 'refs/pull/90/merge': unknown revision or path not in the working tree.

This PR replaces it with GITHUB_HEAD_REF which is hopefully what we need. This problem went undetected until now because of argotorg/solidity#11189 and because locally I only tested the script with actual branch names.

@cameel cameel self-assigned this Apr 21, 2021
@cameel cameel marked this pull request as ready for review April 21, 2021 17:41
@cameel cameel requested a review from chriseth April 21, 2021 17:41
@chriseth chriseth merged commit 4a12c4b into gh-pages May 10, 2021
@chriseth chriseth deleted the use-correct-head-ref-in-bytecode-pr-check branch May 10, 2021 14:25
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.

3 participants