mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-22 14:05:39 +00:00
pipelines: moved the branch checking from the pipeline to the automation tool
This commit is contained in:
parent
af5b12bfd8
commit
03fc1ce56a
5
.github/workflows/cooker-selfhosted.yml
vendored
5
.github/workflows/cooker-selfhosted.yml
vendored
|
@ -54,11 +54,6 @@ jobs:
|
|||
- name: Run pre-build automation tasks
|
||||
run : "/bin/bash ${GITHUB_WORKSPACE}/automation_tools/pre_build_automation.sh"
|
||||
|
||||
- name: Set branch in the manifest
|
||||
run: |
|
||||
sed -i "s/THISBRANCH/$(git rev-parse --abbrev-ref HEAD)/g" net.retrodeck.retrodeck.yml
|
||||
echo "Branch name is: $(git rev-parse --abbrev-ref HEAD)"
|
||||
|
||||
- name: "Build flatpak: download only"
|
||||
id: "flatpak-download"
|
||||
run: |
|
||||
|
|
7
.github/workflows/main-selfhosted.yml
vendored
7
.github/workflows/main-selfhosted.yml
vendored
|
@ -43,11 +43,6 @@ jobs:
|
|||
- name: Run pre-build automation tasks
|
||||
run : "/bin/bash ${GITHUB_WORKSPACE}/automation_tools/pre_build_automation.sh"
|
||||
|
||||
- name: Set branch in the manifest
|
||||
run: |
|
||||
sed -i "s/branch: THISBRANCH/branch: $(git rev-parse --abbrev-ref HEAD)/g" net.retrodeck.retrodeck.yml
|
||||
echo "Branch name is: $(git rev-parse --abbrev-ref HEAD)"
|
||||
|
||||
- name: Read manifest content
|
||||
id: read_manifest
|
||||
run: echo "::set-output name=file_content::$(cat net.retrodeck.retrodeck.yml)"
|
||||
|
@ -55,7 +50,7 @@ jobs:
|
|||
- name: Check VERSION
|
||||
id: check_version_string
|
||||
run: |
|
||||
if [[ "${{ steps.read_file.outputs.file_content }}" == *"VERSION=THISBRANCH"* ]]; then
|
||||
if [[ "${{ steps.read_file.outputs.file_content }}" == *"VERSION=THISBRANCH"* ]] || [[ "${{ steps.read_file.outputs.file_content }}" == *"VERSION=main"* ]]; then
|
||||
echo "Version string is present, proceeding."
|
||||
else
|
||||
echo "Error: You forgot to specify the version."
|
||||
|
|
|
@ -9,3 +9,4 @@ hash^MSXBIOSHASHPLACEHOLDER^http://bluemsx.msxblue.com/rel_download/blueMSXv282f
|
|||
hash^XEMUHDDHASHPLACEHOLDER^https://github.com/mborgerson/xemu-hdd-image/releases/latest/download/xbox_hdd.qcow2.zip
|
||||
latestcommit^UNIVERSALDYNAMICINPUTCOMMITPLACEHOLDER^https://github.com/Venomalia/UniversalDynamicInput^main
|
||||
outside_info^VERSIONPLACEHOLDER^${GITHUB_WORKSPACE}/buildid
|
||||
outside_info^THISBRANCH^$(git rev-parse --abbrev-ref HEAD)
|
||||
|
|
Loading…
Reference in a new issue