From 2248674aa2d68613c8e645d560ed31b4eb0d1de5 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 24 Oct 2024 02:31:01 +0800 Subject: [PATCH] new --- .github/workflows/build.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 88b36b1..f6f7e73 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,12 +20,18 @@ jobs: target: arm64 steps: - - uses: actions/checkout@v4 + - name: Checkout code + uses: actions/checkout@v4 with: fetch-depth: 0 repository: lhuanyun/luci ref: main + - name: Setup Git + run: | + git config --global --add safe.directory $GITHUB_WORKSPACE + git config --global --unset http.https://github.com/.extraheader || true + - name: Determine branch name run: | BRANCH="main" @@ -47,17 +53,17 @@ jobs: - name: Move created packages to project dir run: | mkdir -p output - find bin/packages/${{ matrix.arch }}/packages_ci -name 'luci-*.ipk' -exec cp {} output/ \; + find bin/packages/${{ matrix.arch }}/packages_ci -name 'luci-*.ipk' -exec cp {} output/ \; || true - name: Debug - List package contents run: | for ipk in output/*.ipk; do echo "Contents of $ipk:" - ar x "$ipk" data.tar.gz - tar -tvzf data.tar.gz | grep -E 'luci|commands' + ar x "$ipk" data.tar.gz || continue + tar -tvzf data.tar.gz | grep -E 'luci|commands' || true echo "Full content of $ipk:" - tar -tvzf data.tar.gz - rm data.tar.gz + tar -tvzf data.tar.gz || true + rm -f data.tar.gz done - name: Store packages