From 7a0037303ed4c3779668cf4f7fd707272cdff649 Mon Sep 17 00:00:00 2001 From: Igor Pecovnik Date: Sat, 30 Dec 2023 09:19:08 +0100 Subject: [PATCH] Add checkouts --- action.yml | 40 +++++++++++++++++++++++++++++++++------- 1 file changed, 33 insertions(+), 7 deletions(-) diff --git a/action.yml b/action.yml index b71b574d22f0..4d6bf0ddd897 100644 --- a/action.yml +++ b/action.yml @@ -52,6 +52,36 @@ runs: using: "composite" steps: + + - name: "Checkout Armbian os" + uses: actions/checkout@v4 + with: + repository: armbian/os + fetch-depth: 0 + clean: false + path: os + + - name: "Checkout Armbian build framework" + uses: actions/checkout@v4 + with: + repository: armbian/build + fetch-depth: 0 + clean: false + path: build + + - name: "Checkout customisations" + uses: actions/checkout@v4 + with: + fetch-depth: 0 + clean: false + path: custom + + - shell: bash + run: | + + # read version from upstream Armbian OS + cat os/stable.json | jq '.version' | sed "s/\"//g" | sed 's/^/ARMBIAN_VERSION=/' >> $GITHUB_ENV + - shell: bash run: | @@ -75,11 +105,11 @@ runs: [[ "${{ inputs.armbian_target }}" == image ]] && unset BUILD_TARGET # go to build folder - cd ${GITHUB_ACTION_PATH} + cd os # execute build command ./compile.sh "${BUILD_TARGET}" \ - REVISION="${{ inputs.armbian_version }}" \ + REVISION="${{ env.ARMBIAN_VERSION }}" \ BOARD="${{ inputs.armbian_board }}" \ BRANCH="${{ inputs.armbian_branch }}" \ RELEASE="${{ inputs.armbian_release }}" \ @@ -93,11 +123,7 @@ runs: ENABLE_EXTENSIONS="${{ inputs.armbian_extensions }}" \ COMPRESS_OUTPUTIMAGE="${{ inputs.armbian_compress }}" \ SHARE_LOG="yes" \ - EXPERT="yes" \ - PREFER_DOCKER="no" - - # save path - echo "ARMBIAN_SCRIPT_PATH=${GITHUB_ACTION_PATH}" >> $GITHUB_ENV + EXPERT="yes" branding: icon: "check"