Skip to content

Commit

Permalink
Add support for riseup command
Browse files Browse the repository at this point in the history
This replaces breakfast when Base project is risingOS and when repo init line isn't set. 

Also fix quotes since inputs contexts get swapped during run so we treat them as normal text
  • Loading branch information
sounddrill31 authored Jul 22, 2024
1 parent 77d834f commit 32e520f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,15 @@ jobs:
export REPO_INIT="repo init -u https://github.com/accupara/los-cm14.1.git -b cm-14.1 --git-lfs --depth=1"
;;
esac
if [[ ${{ github.event.inputs.PRODUCT_NAME }} == *_* &&! (${{ github.event.inputs.PRODUCT_NAME }} == gsi_* || ${{ github.event.inputs.PRODUCT_NAME }} == sdk_*) ]]; then
if [[ "${{ github.event.inputs.PRODUCT_NAME }}" == "*_*" &&! ("${{ github.event.inputs.PRODUCT_NAME }}" == "gsi_*" || "${{ github.event.inputs.PRODUCT_NAME }}" == "sdk_*") ]]; then
LUNCH="lunch ${{ github.event.inputs.PRODUCT_NAME }}-${{ github.event.inputs.BUILD_TYPE }}"
else
LUNCH="breakfast ${{ github.event.inputs.PRODUCT_NAME }} ${{ github.event.inputs.BUILD_TYPE }}"
if [[ "${{ github.event.inputs.BASE_PROJECT }}" == "RisingOS 14" && "${{ github.event.inputs.BUILD_DIFFERENT_ROM }}" == "echo 'Build Starting!'" ]]; then
LUNCH="riseup ${{ github.event.inputs.PRODUCT_NAME }} ${{ github.event.inputs.BUILD_TYPE }}"
else
LUNCH="breakfast ${{ github.event.inputs.PRODUCT_NAME }} ${{ github.event.inputs.BUILD_TYPE }}"
fi
fi
echo "Building on ${{ github.event.inputs.BASE_PROJECT }} project"
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/selfhosted.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,14 @@ jobs:
;;
esac
if [[ ${{ github.event.inputs.PRODUCT_NAME }} == *_* &&! (${{ github.event.inputs.PRODUCT_NAME }} == gsi_* || ${{ github.event.inputs.PRODUCT_NAME }} == sdk_*) ]]; then
if [[ "${{ github.event.inputs.PRODUCT_NAME }}" == "*_*" &&! ("${{ github.event.inputs.PRODUCT_NAME }}" == "gsi_*" || "${{ github.event.inputs.PRODUCT_NAME }}" == "sdk_*") ]]; then
LUNCH="lunch ${{ github.event.inputs.PRODUCT_NAME }}-${{ github.event.inputs.BUILD_TYPE }}"
else
LUNCH="breakfast ${{ github.event.inputs.PRODUCT_NAME }} ${{ github.event.inputs.BUILD_TYPE }}"
if [[ "${{ github.event.inputs.BASE_PROJECT }}" == "RisingOS 14" && "${{ github.event.inputs.BUILD_DIFFERENT_ROM }}" == "echo 'Build Starting!'" ]]; then
LUNCH="riseup ${{ github.event.inputs.PRODUCT_NAME }} ${{ github.event.inputs.BUILD_TYPE }}"
else
LUNCH="breakfast ${{ github.event.inputs.PRODUCT_NAME }} ${{ github.event.inputs.BUILD_TYPE }}"
fi
fi
echo "Building on ${{ github.event.inputs.BASE_PROJECT }} project"
Expand Down

0 comments on commit 32e520f

Please sign in to comment.