mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-22 14:05:39 +00:00
WORKFLOW: recalculating hashes if download failed the first time
This commit is contained in:
parent
f9f7d3ce20
commit
ecdfbc24cf
10
.github/workflows/cooker-selfhosted.yml
vendored
10
.github/workflows/cooker-selfhosted.yml
vendored
|
@ -70,12 +70,14 @@ jobs:
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
# Sometimes flatpak download fails, in this case it tries a second time
|
# Sometimes flatpak download fails, in this case it tries a second time
|
||||||
- name: Run pre-build automation tasks (retry)
|
|
||||||
if: steps.flatpak-download.outcome == 'failure'
|
|
||||||
run : "/bin/bash ${GITHUB_WORKSPACE}/automation_tools/pre_build_automation.sh"
|
|
||||||
- name: "Build flatpak: download only (retry)"
|
- name: "Build flatpak: download only (retry)"
|
||||||
if: steps.flatpak-download.outcome == 'failure'
|
if: steps.flatpak-download.outcome == 'failure'
|
||||||
run: "/bin/bash ${GITHUB_WORKSPACE}/automation_tools/flatpak_build_download_only.sh"
|
run: |
|
||||||
|
echo "Download failed, maybe some hash changed since the build start."
|
||||||
|
git checkout -- net.retrodeck.retrodeck.yml
|
||||||
|
echo "Recalculating hashes and retrying download..."
|
||||||
|
"/bin/bash ${GITHUB_WORKSPACE}/automation_tools/pre_build_automation.sh"
|
||||||
|
"/bin/bash ${GITHUB_WORKSPACE}/automation_tools/flatpak_build_download_only.sh"
|
||||||
|
|
||||||
- name: Build flatpak
|
- name: Build flatpak
|
||||||
run: "/bin/bash ${GITHUB_WORKSPACE}/automation_tools/flatpak_build_only.sh"
|
run: "/bin/bash ${GITHUB_WORKSPACE}/automation_tools/flatpak_build_only.sh"
|
||||||
|
|
7
.github/workflows/main-selfhosted.yml
vendored
7
.github/workflows/main-selfhosted.yml
vendored
|
@ -69,7 +69,12 @@ jobs:
|
||||||
# Sometimes flatpak download fails, in this case it tries a second time
|
# Sometimes flatpak download fails, in this case it tries a second time
|
||||||
- name: "Build flatpak: download only (retry)"
|
- name: "Build flatpak: download only (retry)"
|
||||||
if: steps.flatpak-download.outcome == 'failure'
|
if: steps.flatpak-download.outcome == 'failure'
|
||||||
run: "/bin/bash ${GITHUB_WORKSPACE}/automation_tools/flatpak_build_download_only.sh"
|
run: |
|
||||||
|
echo "Download failed, maybe some hash changed since the build start."
|
||||||
|
git checkout -- net.retrodeck.retrodeck.yml
|
||||||
|
echo "Recalculating hashes and retrying download..."
|
||||||
|
"/bin/bash ${GITHUB_WORKSPACE}/automation_tools/pre_build_automation.sh"
|
||||||
|
"/bin/bash ${GITHUB_WORKSPACE}/automation_tools/flatpak_build_download_only.sh"
|
||||||
|
|
||||||
- name: Build flatpak
|
- name: Build flatpak
|
||||||
run: "/bin/bash ${GITHUB_WORKSPACE}/automation_tools/flatpak_build_only.sh"
|
run: "/bin/bash ${GITHUB_WORKSPACE}/automation_tools/flatpak_build_only.sh"
|
||||||
|
|
Loading…
Reference in a new issue