Skip to content

Commit cc381fb

Browse files
authored
Merge pull request #12 from soaringDistributions/codex/update-build.yml-to-add-input_github_token
Repair second early build failure - Add GitHub token env vars to build installer workflow
2 parents 88ad3d6 + 2c21ac5 commit cc381fb

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,9 @@ jobs:
168168
timeout-minutes: 120
169169
run: |
170170
./ubiquitous_bash.sh _getMinimal_cloud
171+
env:
172+
INPUT_GITHUB_TOKEN: ${{ github.token }}
173+
GH_TOKEN: ${{ github.token }}
171174

172175
- name: _test_hash_legacy
173176
shell: bash
@@ -186,20 +189,29 @@ jobs:
186189
timeout-minutes: 120
187190
run: |
188191
./ubiquitous_bash.sh _getMinimal-build_ubDistBuild
192+
env:
193+
INPUT_GITHUB_TOKEN: ${{ github.token }}
194+
GH_TOKEN: ${{ github.token }}
189195
- name: build-fetch
190196
shell: bash
191197
timeout-minutes: 120
192198
run: |
193199
mkdir -p ../ubDistBuild-accessories/integrations/ubcp
194-
#curl -L -o ../ubDistBuild-accessories/integrations/ubcp/package_ubcp-core.7z $(curl -s -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" "https://api.github.com/repos/mirage335-colossus/ubiquitous_bash/releases" | jq -r ".[] | select(.name == \"internal\") | .assets[] | select(.name == \"package_ubcp-core.7z\") | .browser_download_url" | sort -n -r | head -n1)
200+
#curl -L -o ../ubDistBuild-accessories/integrations/ubcp/package_ubcp-core.7z $(curl -s -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" "https://api.github.com/repos/mirage335-colossus/ubiquitous_bash/releases" | jq -r ".[] | select(.name == \"internal\") | .assets[] | select(.name == \"package_ubcp-core.7z\") | .browser_download_url" | sort -n -r | head -n1)
195201
./ubiquitous_bash.sh _build_ubDistBuild-fetch
202+
env:
203+
INPUT_GITHUB_TOKEN: ${{ github.token }}
204+
GH_TOKEN: ${{ github.token }}
196205
- name: build-build
197206
shell: bash
198207
timeout-minutes: 120
199208
run: |
200209
rm -rf ../ubDistBuild-accessories/parts/ubcp/package_ubcp-core/ubcp
201210
#rm -f ../ubDistBuild-accessories/integrations/ubcp/package_ubcp-core.7z
202211
./ubiquitous_bash.sh _build_ubDistBuild-build
212+
env:
213+
INPUT_GITHUB_TOKEN: ${{ github.token }}
214+
GH_TOKEN: ${{ github.token }}
203215

204216
- name: _hash_ubDistBuildExe
205217
shell: bash

0 commit comments

Comments
 (0)