From c10b7d6020206bf8b7ebfdfae381bfb7dd3351ad Mon Sep 17 00:00:00 2001 From: Rundong Li Date: Mon, 14 Oct 2024 00:22:51 +0800 Subject: [PATCH] [CI] fix if-else grammar in build script --- .github/workflows/artifacts-release-nightly.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/artifacts-release-nightly.yaml b/.github/workflows/artifacts-release-nightly.yaml index 48dd1c2..7d20048 100644 --- a/.github/workflows/artifacts-release-nightly.yaml +++ b/.github/workflows/artifacts-release-nightly.yaml @@ -69,14 +69,14 @@ jobs: WORK_DIR: ${{ github.workspace }}/openwrt PASSWORD: ${{ secrets.MASTER_PASSWORD }} run: | - bash openwrt-builder/build.sh - if [[ ${{ matrix.openwrt.version}} == 'snapshots']]; then + if [[ ${{ matrix.openwrt.version}} == 'snapshots' ]]; then BUILD_DIR="${WORK_DIR}/openwrt-imagebuilder-${TARGET/\//-}.Linux-${TARGET/\//_}/bin/targets/${TARGET}/" else BUILD_DIR="${WORK_DIR}/openwrt-imagebuilder-${VERSION}-${TARGET/\//-}.Linux-${TARGET/\//_}/bin/targets/${TARGET}/" fi OUTPUT_DIR=${{ github.workspace }}/outputs mkdir -p ${OUTPUT_DIR} + bash openwrt-builder/build.sh for f in $(find ${BUILD_DIR} -iname '*.gz'); do cp ${f} ${OUTPUT_DIR}/ done