From da22c887e43331b676b1fdc8dbf38ff9994de9f3 Mon Sep 17 00:00:00 2001 From: SoundDrill31 <84176052+sounddrill31@users.noreply.github.com> Date: Wed, 21 Feb 2024 10:47:18 +0000 Subject: [PATCH] Fix Duplicate Lines --- .github/workflows/main.yml | 31 +------------------------------ 1 file changed, 1 insertion(+), 30 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1fa92b64..1fde3524 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,15 +8,12 @@ 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' @@ -24,29 +21,21 @@ on: - '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" @@ -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' @@ -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' @@ -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 @@ -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 @@ -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: | @@ -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 }} \ No newline at end of file