diff --git a/.forgejo/workflows/pull-requests.yml b/.forgejo/workflows/pull-requests.yml index 3769c19..c509cf4 100644 --- a/.forgejo/workflows/pull-requests.yml +++ b/.forgejo/workflows/pull-requests.yml @@ -58,6 +58,13 @@ jobs: DEBIAN_REF=$(echo ${{ github.ref_name }} | tr - \~) echo "debian_ref=$DEBIAN_REF" >> $GITHUB_OUTPUT echo DEBIAN_REF: $DEBIAN_REF + DEBIAN_REV=-$(cat Cargo.toml | grep -E "(^|\|)revision =" | cut -f2- -d= | tr -d \" | tr -d " ") + echo "debian_rev=$DEBIAN_REV" >> ${{ env.GITHUB_OUTPUT }} + echo DEBIAN_REV: $DEBIAN_REV + 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: Uploading Build Artifact uses: actions/upload-artifact@v3