Skip to content

Commit

Permalink
[CI] fix if-else grammar in build script
Browse files Browse the repository at this point in the history
  • Loading branch information
lirundong committed Oct 13, 2024
1 parent 4903cb7 commit c10b7d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/artifacts-release-nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c10b7d6

Please sign in to comment.