@@ -14,10 +14,6 @@ inputs:
14
14
required : true
15
15
description : " Filename of the Godot executable"
16
16
17
- github-pat :
18
- required : true
19
- description : " GitHub PAT (personal access token) to download artifacts from other repos"
20
-
21
17
rust-toolchain :
22
18
required : false
23
19
default : ' stable'
@@ -34,36 +30,26 @@ runs:
34
30
steps :
35
31
- uses : actions/checkout@v3
36
32
33
+ # Replaces also backspaces on Windows, since they cause problems in Bash
34
+ - name : " Store variable to Godot binary"
35
+ run : |
36
+ runnerDir=$(echo "${{ runner.temp }}" | sed "s!\\\\!/!")
37
+ echo "RUNNER_DIR=$runnerDir" >> $GITHUB_ENV
38
+ echo "GODOT4_BIN=$runnerDir/godot_bin/${{ inputs.binary-filename }}" >> $GITHUB_ENV
39
+ shell : bash
40
+
37
41
# - name: "Check cache for installed Godot version"
38
42
# id: "cache-godot"
39
43
# uses: actions/cache@v3
40
44
# with:
41
45
# path: ${{ runner.temp }}/godot_bin
42
- # #key: godot-${{ runner.os }}-v${{ inputs.godot-ver }}
43
- # key: ${{ inputs.artifact-name }}
46
+ # key: ${{ inputs.artifact-name }}-v${{ inputs.godot-ver }}
44
47
45
48
- name : " Download Godot artifact"
46
49
# if: steps.cache-godot.outputs.cache-hit != 'true'
47
- # https://github.com/dawidd6/action-download-artifact
48
- uses : dawidd6/action-download-artifact@v2
49
- with :
50
- # Downloads and unzips the artifact with {name} of the latest run of specified {workflow}
51
- path : ${{ runner.temp }}/godot_bin
52
- github_token : ${{ inputs.github-pat }}
53
- repo : Bromeon/godot4-nightly
54
- branch : master
55
- workflow : compile-godot.yml
56
- workflow_conclusion : success
57
- name : ${{ inputs.artifact-name }}
58
- # Search for the last workflow run, which stored an artifact named as in `name` input
59
- search_artifacts : true
60
-
61
- # Replaces also backspaces on Windows, since they cause problems in Bash
62
- - name : " Store variable to Godot binary"
63
50
run : |
64
- runnerDir=$(echo "${{ runner.temp }}" | sed "s!\\\\!/!")
65
- echo "RUNNER_DIR=$runnerDir" >> $GITHUB_ENV
66
- echo "GODOT4_BIN=$runnerDir/godot_bin/${{ inputs.binary-filename }}" >> $GITHUB_ENV
51
+ curl https://nightly.link/Bromeon/godot4-nightly/workflows/compile-godot/master/${{ inputs.artifact-name }}.zip -Lo artifact.zip
52
+ unzip artifact.zip -d $RUNNER_DIR/godot_bin
67
53
shell : bash
68
54
69
55
# The chmod seems still necessary, although applied before uploading artifact. Possibly modes are not preserved.
@@ -133,6 +119,7 @@ runs:
133
119
shell : bash
134
120
135
121
- name : " Conclusion"
122
+ if : always()
136
123
run : |
137
124
echo "Evaluate conclusion ($OUTCOME)"
138
125
@@ -165,6 +152,4 @@ runs:
165
152
exit 4
166
153
;;
167
154
esac
168
-
169
155
shell : bash
170
- if : always()
0 commit comments