Skip to content

Commit

Permalink
Accept blank input for repo init line
Browse files Browse the repository at this point in the history
  • Loading branch information
sounddrill31 authored Jun 23, 2024
1 parent 669247b commit b68caab
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ jobs:
rm -rf tester
mkdir tester
cd tester
if [ "${{ github.event.inputs.BUILD_DIFFERENT_ROM }}" == "echo 'Build Starting!'" ]; then
if [ -z "${{ github.event.inputs.BUILD_DIFFERENT_ROM }}" || "${{ github.event.inputs.BUILD_DIFFERENT_ROM }}" == "echo 'Build Starting!'" ]; then
$REPO_INIT
else
${{ github.event.inputs.BUILD_DIFFERENT_ROM }}
Expand Down Expand Up @@ -372,7 +372,7 @@ jobs:
echo "Running $REPO_INIT"
$REPO_INIT
if [ "${{ github.event.inputs.BUILD_DIFFERENT_ROM }}" == "echo 'Build Starting!'" ]; then
if [ -z "${{ github.event.inputs.BUILD_DIFFERENT_ROM }}" || "${{ github.event.inputs.BUILD_DIFFERENT_ROM }}" == "echo 'Build Starting!'" ]; then
export BUILD_DIFFERENT_ROM="$REPO_INIT"
echo "Building $BUILD_DIFFERENT_ROM"
else
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/selfhosted.yml
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ jobs:
rm -rf tester
mkdir tester
cd tester
if [ "${{ github.event.inputs.BUILD_DIFFERENT_ROM }}" == "echo 'Build Starting!'" ]; then
if [ -z "${{ github.event.inputs.BUILD_DIFFERENT_ROM }}" || "${{ github.event.inputs.BUILD_DIFFERENT_ROM }}" == "echo 'Build Starting!'" ]; then
$REPO_INIT
else
${{ github.event.inputs.BUILD_DIFFERENT_ROM }}
Expand Down Expand Up @@ -397,7 +397,7 @@ jobs:
$REPO_INIT
fi
if [ "${{ github.event.inputs.BUILD_DIFFERENT_ROM }}" == "echo 'Build Starting!'" ]; then
if [ -z "${{ github.event.inputs.BUILD_DIFFERENT_ROM }}" || "${{ github.event.inputs.BUILD_DIFFERENT_ROM }}" == "echo 'Build Starting!'" ]; then
export BUILD_DIFFERENT_ROM="$REPO_INIT"
echo "Building $BUILD_DIFFERENT_ROM"
else
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/twrp-legacy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ jobs:
rm -rf tester
mkdir tester
cd tester
if [ "${{ github.event.inputs.BUILD_DIFFERENT_ROM }}" == "echo 'Build Starting!'" ]; then
if [ -z "${{ github.event.inputs.BUILD_DIFFERENT_ROM }}" || "${{ github.event.inputs.BUILD_DIFFERENT_ROM }}" == "echo 'Build Starting!'" ]; then
$REPO_INIT
else
${{ github.event.inputs.BUILD_DIFFERENT_ROM }}
Expand Down Expand Up @@ -302,7 +302,7 @@ jobs:
echo "Running $REPO_INIT"
$REPO_INIT
if [ "${{ github.event.inputs.BUILD_DIFFERENT_ROM }}" == "echo 'Build Starting!'" ]; then
if [ -z "${{ github.event.inputs.BUILD_DIFFERENT_ROM }}" || "${{ github.event.inputs.BUILD_DIFFERENT_ROM }}" == "echo 'Build Starting!'" ]; then
export BUILD_DIFFERENT_ROM="$REPO_INIT"
echo "Building $BUILD_DIFFERENT_ROM"
else
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/twrp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ jobs:
rm -rf tester
mkdir tester
cd tester
if [ "${{ github.event.inputs.BUILD_DIFFERENT_ROM }}" == "echo 'Build Starting!'" ]; then
if [ -z "${{ github.event.inputs.BUILD_DIFFERENT_ROM }}" || "${{ github.event.inputs.BUILD_DIFFERENT_ROM }}" == "echo 'Build Starting!'" ]; then
$REPO_INIT
else
${{ github.event.inputs.BUILD_DIFFERENT_ROM }}
Expand Down Expand Up @@ -302,7 +302,7 @@ jobs:
echo "Running $REPO_INIT"
$REPO_INIT
if [ "${{ github.event.inputs.BUILD_DIFFERENT_ROM }}" == "echo 'Build Starting!'" ]; then
if [ -z "${{ github.event.inputs.BUILD_DIFFERENT_ROM }}" || "${{ github.event.inputs.BUILD_DIFFERENT_ROM }}" == "echo 'Build Starting!'" ]; then
export BUILD_DIFFERENT_ROM="$REPO_INIT"
echo "Building $BUILD_DIFFERENT_ROM"
else
Expand Down

0 comments on commit b68caab

Please sign in to comment.