Skip to content

Commit 554f312

Browse files
Use long hash instead of short-hash hacks
1 parent 6bb3e95 commit 554f312

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -33,26 +33,11 @@ jobs:
3333
- name: Checkout branch
3434
uses: actions/checkout@v4
3535

36-
- name: Resolve inputs.ref to full SHA
37-
# https://github.com/actions/checkout/issues/265#issuecomment-1936792528
38-
id: resolve-ref
39-
run: |
40-
apt-get update -y && apt-get install -y jq
41-
42-
ref=${{ matrix.ctru-rs-ref }}
43-
sha=$(curl -L "https://api.github.com/repos/rust3ds/ctru-rs/commits/$ref" | jq -r .sha)
44-
if [ -z "$sha" ]; then
45-
echo "Failed to resolve ref $ref (possibly missing GH_TOKEN env var?)" >&2
46-
exit 1
47-
fi
48-
49-
echo "sha=$sha" >> $GITHUB_OUTPUT
50-
5136
- uses: actions/checkout@v4
5237
with:
5338
repository: 'rust3ds/ctru-rs'
5439
path: 'ctru-rs'
55-
ref: ${{ steps.resolve-ref.outputs.sha }}
40+
ref: ${{ matrix.ctru-rs-ref }}
5641

5742
- uses: ./setup
5843
with:

0 commit comments

Comments
 (0)