Github Action: checkout the selected branch directly

checkout the  selected branch directly  in actions/checkout step
This commit is contained in:
pykpkg47
2024-12-08 16:19:08 +01:00
committed by Igor
parent eb9ca73e12
commit 30ba495655

View File

@@ -122,7 +122,7 @@ runs:
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
repository: armbian/build repository: armbian/build
fetch-depth: 0 ref: ${{ inputs.armbian_branch }}
clean: false clean: false
path: build path: build
@@ -163,9 +163,8 @@ runs:
DESKTOP_ENVIRONMENT_CONFIG_NAME="config_base" DESKTOP_ENVIRONMENT_CONFIG_NAME="config_base"
fi fi
# go to build folder and checkout # go to build folder
cd build cd build
git checkout ${{ inputs.armbian_branch }}
# execute build command # execute build command
./compile.sh "${{ inputs.armbian_target }}" \ ./compile.sh "${{ inputs.armbian_target }}" \