From 30ba4956550aa3cca082c7e0ac965daa33d5470c Mon Sep 17 00:00:00 2001 From: pykpkg47 <118465017+pykpkg47@users.noreply.github.com> Date: Sun, 8 Dec 2024 16:19:08 +0100 Subject: [PATCH] Github Action: checkout the selected branch directly checkout the selected branch directly in actions/checkout step --- action.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/action.yml b/action.yml index 0b7a1f80ee..3a462994e7 100644 --- a/action.yml +++ b/action.yml @@ -122,7 +122,7 @@ runs: uses: actions/checkout@v4 with: repository: armbian/build - fetch-depth: 0 + ref: ${{ inputs.armbian_branch }} clean: false path: build @@ -163,9 +163,8 @@ runs: DESKTOP_ENVIRONMENT_CONFIG_NAME="config_base" fi - # go to build folder and checkout + # go to build folder cd build - git checkout ${{ inputs.armbian_branch }} # execute build command ./compile.sh "${{ inputs.armbian_target }}" \