From 0caba1a9d6e7e667164012197fdd203780b26a2a Mon Sep 17 00:00:00 2001 From: Neshura Date: Wed, 7 Aug 2024 20:30:27 +0200 Subject: [PATCH] Test --- .forgejo/workflows/pull-requests.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.forgejo/workflows/pull-requests.yml b/.forgejo/workflows/pull-requests.yml index da7a988..77f1b31 100644 --- a/.forgejo/workflows/pull-requests.yml +++ b/.forgejo/workflows/pull-requests.yml @@ -37,9 +37,9 @@ jobs: runs-on: docker container: forgejo.neshweb.net/ci-docker-images/rust-node:latest outputs: - DEBIAN_NAME: ${{ steps.deb_bundle.outputs.debian_name }} - DEBIAN_REV: ${{ steps.deb_bundle.outputs.debian_rev }} - DEBIAN_REF: ${{ steps.deb_bundle.outputs.debian_ref }} + DEBIAN_NAME: ${{ steps.deb.outputs.debian_name }} + DEBIAN_REV: ${{ steps.deb.outputs.debian_rev }} + DEBIAN_REF: ${{ steps.deb.outputs.debian_ref }} steps: - name: Checking Out Repository Code uses: https://code.forgejo.org/actions/checkout@v3 @@ -52,8 +52,8 @@ jobs: cargo build -r mv target/release/${{ github.event.repository.name }} dist/${{ github.event.repository.name }}-linux-amd64 - - name: Bundle .deb package - id: deb_bundle + - name: Collect Debian Metadata + id: deb run: | DEBIAN_REF=$(echo ${{ github.ref_name }} | tr - \~) echo "debian_ref=$DEBIAN_REF" >> ${{ env.GITHUB_OUTPUT }} @@ -64,7 +64,9 @@ jobs: DEBIAN_NAME=$(cat Cargo.toml | grep -E "(^|\|)name =" | cut -f2- -d= | tr -d \" | tr -d " ") echo "debian_name=$DEBIAN_NAME" >> ${{ env.GITHUB_OUTPUT }} echo DEBIAN_NAME: $DEBIAN_NAME - mv target/debian/${{ DEBIAN_NAME }}_${{ DEBIAN_REF }}-${{ DEBIAN_REV }}_amd64.deb dist/${{ DEBIAN_NAME }}_${{ DEBIAN_REF }}-${{ DEBIAN_REV }}_amd64.deb + + - name: Bundle .deb package + run: mv target/debian/${{ DEBIAN_NAME }}_${{ DEBIAN_REF }}-${{ DEBIAN_REV }}_amd64.deb dist/${{ DEBIAN_NAME }}_${{ DEBIAN_REF }}-${{ DEBIAN_REV }}_amd64.deb - name: Uploading Build Artifact uses: actions/upload-artifact@v3