Skip to content

Commit

Permalink
Add checkouts
Browse files Browse the repository at this point in the history
  • Loading branch information
igorpecovnik committed Dec 30, 2023
1 parent 0d672d6 commit 7a00373
Showing 1 changed file with 33 additions and 7 deletions.
40 changes: 33 additions & 7 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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 }}" \
Expand All @@ -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"
Expand Down

0 comments on commit 7a00373

Please sign in to comment.