Skip to content

Commit 6531515

Browse files
authored
Merge pull request #14 from grafbase/brabier-remote-origin
fix(action): Remove remotes/origin prefix
2 parents 3827ff3 + 4bd103b commit 6531515

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

action.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ inputs:
1010
version:
1111
description: "Which version of what-rust-changed to use. The default should usually suffice"
1212
required: false
13-
default: "v0.1.0"
13+
default: "v0.2.1"
1414
outputs:
1515
# These 2 are JSON lists (encoded as strings because github actions, sigh)
1616
blah:
@@ -67,12 +67,13 @@ runs:
6767
shell: bash
6868
env:
6969
WHAT_RUST_CHANGED_CONFIG: ${{ inputs.config }}
70-
BASE_REF: remotes/origin/${{ inputs.base }}
70+
BASE_REF: ${{ inputs.base }}
7171
run: |
7272
HEAD_REF=$(git rev-parse HEAD)
7373
set -euo pipefail
7474
echo "Head: $HEAD_REF"
7575
echo "Base: $BASE_REF"
76+
git checkout "$BASE_REF"
7677
MERGE_BASE=$(git merge-base $BASE_REF $HEAD_REF)
7778
echo "Merge Base: $MERGE_BASE"
7879
git checkout $MERGE_BASE

0 commit comments

Comments
 (0)