File tree 1 file changed +1
-16
lines changed
1 file changed +1
-16
lines changed Original file line number Diff line number Diff line change @@ -33,26 +33,11 @@ jobs:
33
33
- name : Checkout branch
34
34
uses : actions/checkout@v4
35
35
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
-
51
36
- uses : actions/checkout@v4
52
37
with :
53
38
repository : ' rust3ds/ctru-rs'
54
39
path : ' ctru-rs'
55
- ref : ${{ steps.resolve- ref.outputs.sha }}
40
+ ref : ${{ matrix.ctru-rs- ref }}
56
41
57
42
- uses : ./setup
58
43
with :
You can’t perform that action at this time.
0 commit comments