Skip to content

Commit

Permalink
Fix Duplicate Lines
Browse files Browse the repository at this point in the history
  • Loading branch information
sounddrill31 committed Feb 21, 2024
1 parent 164b664 commit da22c88
Showing 1 changed file with 1 addition and 30 deletions.
31 changes: 1 addition & 30 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,45 +8,34 @@
name: Start job for building through Crave.
on:
workflow_dispatch:
# Various inputs to simplify usage of workflow.
# Various inputs to simplify usage of workflow.
inputs:
BASE_PROJECT:
description: 'Choose a base project:'
description: 'Choose a base project:'
required: true
default: 'LineageOS 20.0'
default: 'LineageOS 20.0'
type: choice
options:
- 'LineageOS 20.0'
- 'LineageOS 21.0'
- 'ArrowOS 13.1'
- 'DerpFest 13.0'
BUILD_DIFFERENT_ROM:
description: "Command to initialize a different 'repo' project:"
description: "Command to initialize a different 'repo' project:"
required: false
default: "echo 'Build Starting!'"
default: "echo 'Build Starting!'"
REMOVALS:
description: "Folders to be removed before syncing:"
required: false
description: "Folders to be removed before syncing:"
required: false
LOCAL_MANIFEST:
description: "Personal local manifest [repository or raw]:"
description: "Personal local manifest [repository or raw]:"
required: true
default: 'https://github.com/sounddrill31/local_manifests'
LOCAL_MANIFEST_BRANCH:
description: "Personal local manifest's branch:"
required: false
description: "Personal local manifest's branch:"
required: false
default: 'lineage-oxygen'
DEVICE_NAME:
description: "Device's codename:"
description: "Device's codename:"
required: true
default: "oxygen"
Expand All @@ -57,14 +46,11 @@ on:
description: "Product to build:"
required: true
default: "lineage_oxygen"
default: "lineage_oxygen"
BUILD_COMMAND:
description: 'Command to be used for compiling:'
description: 'Command to be used for compiling:'
required: true
default: 'mka bacon'
BUILD_TYPE:
description: 'Type of build:'
description: 'Type of build:'
required: true
default: 'userdebug'
Expand All @@ -74,7 +60,6 @@ on:
- 'userdebug'
- 'user'
CLEAN_BUILD:
description: 'Build with a clean workspace?'
description: 'Build with a clean workspace?'
required: true
default: 'no'
Expand All @@ -92,13 +77,9 @@ jobs:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
# Clean the workflow before initialization.
# Clean the workflow before initialization.
- name: Cleanup
run: rm -rf ${PWD}/*

# Check-out in order to access the repository's files.
run: rm -rf ${PWD}/*

# Check-out in order to access the repository's files.
- name: Check-out to repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -154,7 +135,6 @@ jobs:
repo init -u https://github.com/LineageOS/android.git -b lineage-21.0 --git-lfs --depth=1
crave set --projectID 72
;;
"LineageOS 20.0")
"LineageOS 20.0")
repo init -u https://github.com/LineageOS/android.git -b lineage-20.0 --git-lfs --depth=1
crave set --projectID 36
Expand Down Expand Up @@ -192,16 +172,10 @@ jobs:
${{ github.event.inputs.BUILD_COMMAND }}"

# Only reach this wheter the user killed the workflow.

# Only reach this wheter the user killed the workflow.
- name: Execute if the job is cancelled
if: ${{ cancelled() }}
run: crave stop --all

# Pull '.zip's and '.img's from 'crave'.
- name: Retrive build artifact(s)
run: crave stop --all

# Pull '.zip's and '.img's from 'crave'.
- name: Retrive build artifact(s)
run: |
Expand All @@ -226,11 +200,8 @@ jobs:
${{ github.event.inputs.DEVICE_NAME }}/system.img
${{ github.event.inputs.DEVICE_NAME }}/*.zip
name: ${{ github.event.inputs.PRODUCT_NAME }}-${{ github.run_id }}
name: ${{ github.event.inputs.PRODUCT_NAME }}-${{ github.run_id }}
tag_name: ${{ github.run_id }}
body: |
Target: ${{ github.event.inputs.PRODUCT_NAME }}-${{ github.event.inputs.BUILD_TYPE }}
Target: ${{ github.event.inputs.PRODUCT_NAME }}-${{ github.event.inputs.BUILD_TYPE }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit da22c88

Please sign in to comment.