mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-12-01 01:55:42 +00:00
Revert "PANCAKES: trying to store the token for the clone - troubleshooting"
This reverts commit 66836d5b7d
.
This commit is contained in:
parent
66836d5b7d
commit
aca61884df
11
.github/workflows/build_release.yml
vendored
11
.github/workflows/build_release.yml
vendored
|
@ -196,22 +196,23 @@ jobs:
|
|||
|
||||
- name: "Build flatpak: download only"
|
||||
id: flatpak-download
|
||||
run: "/bin/bash ${GITHUB_WORKSPACE}/automation_tools/flatpak_build_download_only.sh"
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ steps.generate-rekku-token.outputs.token }}
|
||||
run: |
|
||||
git config --global credential.helper store
|
||||
echo "https://${{ steps.generate-rekku-token.outputs.token }}@github.com" > ~/.git-credentials
|
||||
"${GITHUB_WORKSPACE}/automation_tools/flatpak_build_download_only.sh"
|
||||
|
||||
# Sometimes flatpak download fails, in this case it tries a second time
|
||||
- name: "Build flatpak: download only (retry)"
|
||||
if: steps.flatpak-download.outcome == 'failure'
|
||||
run: |
|
||||
git config --global credential.helper store
|
||||
echo "https://${{ steps.generate-rekku-token.outputs.token }}@github.com" > ~/.git-credentials
|
||||
echo "Download failed, maybe some hash changed since the build start."
|
||||
echo "Recalculating hashes and retrying download..."
|
||||
rm -f "{GITHUB_WORKSPACE}/net.retrodeck.retrodeck.yml"
|
||||
cp "${GITHUB_WORKSPACE}/net.retrodeck.retrodeck.yml.bak" "${GITHUB_WORKSPACE}/net.retrodeck.retrodeck.yml"
|
||||
"${GITHUB_WORKSPACE}/automation_tools/pre_build_automation.sh"
|
||||
"${GITHUB_WORKSPACE}/automation_tools/flatpak_build_download_only.sh"
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ steps.generate-rekku-token.outputs.token }}
|
||||
|
||||
- name: Build flatpak
|
||||
run: "/bin/bash ${GITHUB_WORKSPACE}/automation_tools/flatpak_build_only.sh"
|
||||
|
|
|
@ -4,16 +4,6 @@
|
|||
|
||||
git config --global protocol.file.allow always
|
||||
|
||||
# Getting token from env
|
||||
TOKEN=$GITHUB_TOKEN
|
||||
|
||||
export GIT_CURL_VERBOSE=1
|
||||
export GIT_ASKPASS=echo
|
||||
export GIT_USERNAME=token
|
||||
export GIT_PASSWORD=$TOKEN
|
||||
|
||||
sed -i "s|Authorization: token .*|Authorization: token ${TOKEN}|" "${GITHUB_WORKSPACE}/net.retrodeck.retrodeck.yml"
|
||||
|
||||
if [[ "${GITHUB_REF##*/}" == "main" ]]; then
|
||||
BUNDLE_NAME="RetroDECK.flatpak"
|
||||
FOLDER=retrodeck-flatpak
|
||||
|
|
|
@ -570,11 +570,9 @@ modules:
|
|||
- mkdir -p "${FLATPAK_DEST}/retrodeck/licenses"
|
||||
- mv LICENSE.txt "${FLATPAK_DEST}/retrodeck/licenses"
|
||||
sources:
|
||||
- type: archive
|
||||
- type: file
|
||||
url: https://github.com/RetroDECK/Pancakes/releases/download/1.1.0.1403/pancakes-Release-linux_x64.tar.gz
|
||||
sha256: cc7d25b6a2f2ad16533e3d72ba9477a4d77b8cfbb450f0db3d0c05ffde5e1281
|
||||
x-extra-headers:
|
||||
- "Authorization: token ${GITHUB_TOKEN}"
|
||||
|
||||
# XEMU
|
||||
# https://xemu.app/docs/download/#download-for-linux
|
||||
|
|
Loading…
Reference in a new issue