diff --git a/.github/workflows/build_pkg.yml b/.github/workflows/build_pkg.yml index d5dc65c..c931dc0 100644 --- a/.github/workflows/build_pkg.yml +++ b/.github/workflows/build_pkg.yml @@ -36,19 +36,19 @@ jobs: run: podman pull "${{ inputs.build_container }}:amd64" - name: fetch dependencies run: | - mkdir pkgs + mkdir _pkgs while IFS=@ read -r repo tag; do ./gh_release "${{ github.token }}" "$repo" list "$tag" | grep '\.deb$' | while read -r url; do - (cd pkgs && wget "$url") + (cd _pkgs && wget "$url") done done <<< '${{ inputs.dependencies }}' - ls -lah pkgs - dpkg-scanpackages pkgs > pkgs/Packages - cat pkgs/Packages + ls -lah _pkgs + dpkg-scanpackages _pkgs > _pkgs/Packages + cat _pkgs/Packages - name: build id: build run: | - pkg="$(podman run --rm -v "$PWD/input:/input" -v "$PWD/output:/output" -v "$PWD/pkgs:/pkgs" "${{ inputs.build_container }}:amd64" build_source)" + pkg="$(podman run --rm -v "$PWD/input:/input" -v "$PWD/output:/output" -v "$PWD/_pkgs:/_pkgs" "${{ inputs.build_container }}:amd64" build_source)" echo "pkg=$pkg" | tee -a "$GITHUB_OUTPUT" echo "build_options=$(cat output/.build_options)" | tee -a "$GITHUB_OUTPUT" - name: check if ${{ env.pkg }} already released @@ -103,20 +103,20 @@ jobs: ln -s "$pkg.dsc" .source - name: fetch dependencies run: | - mkdir pkgs + mkdir _pkgs while IFS=@ read -r repo tag; do ./gh_release "${{ github.token }}" "$repo" list "$tag" | grep '\.deb$' | while read -r url; do - (cd pkgs && wget "$url") + (cd _pkgs && wget "$url") done done <<< '${{ inputs.dependencies }}' - ls -lah pkgs - dpkg-scanpackages pkgs > pkgs/Packages - cat pkgs/Packages + ls -lah _pkgs + dpkg-scanpackages _pkgs > _pkgs/Packages + cat _pkgs/Packages - name: build id: build run: | mkdir output - pkg="$(podman run --rm -v "$PWD/input:/input" -v "$PWD/output:/output" -v "$PWD/pkgs:/pkgs" "${{ inputs.build_container }}:${{ matrix.arch }}" "build_${{ matrix.target }}")" + pkg="$(podman run --rm -v "$PWD/input:/input" -v "$PWD/output:/output" -v "$PWD/_pkgs:/_pkgs" "${{ inputs.build_container }}:${{ matrix.arch }}" "build_${{ matrix.target }}")" echo "pkg=$pkg" | tee -a "$GITHUB_OUTPUT" - name: upload packages if: ${{ steps.build.outputs.pkg != '' }}