From 01b3a2028b7a50dce7d5ab8f416a3525acf8ce8f Mon Sep 17 00:00:00 2001 From: Neshura Date: Wed, 7 Aug 2024 19:52:08 +0200 Subject: [PATCH] Adjust Environment Variable Test --- .forgejo/workflows/pull-requests.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.forgejo/workflows/pull-requests.yml b/.forgejo/workflows/pull-requests.yml index c3a4a63..fa9573b 100644 --- a/.forgejo/workflows/pull-requests.yml +++ b/.forgejo/workflows/pull-requests.yml @@ -76,9 +76,11 @@ jobs: if: success() runs-on: docker steps: - - - name: Test Debian Variables + - name: Checking Out Repository Code + uses: https://code.forgejo.org/actions/checkout@v3 + + - name: Test Debian Variables run: | - test ${{ needs.build.outputs.debian_name }} = $(echo ${{ github.ref_name }} | tr - \~) - test ${{ needs.build.outputs.debian_ref }} = $(cat Cargo.toml | grep -E "(^|\|)revision =" | cut -f2- -d= | tr -d \" | tr -d " ") - test ${{ needs.build.outputs.debian_rev }} = $(cat Cargo.toml | grep -E "(^|\|)name =" | cut -f2- -d= | tr -d \" | tr -d " ") + test ${{ needs.build.outputs.debian_name }} = echo ${{ github.ref_name }} | tr - \~ + test ${{ needs.build.outputs.debian_ref }} = cat Cargo.toml | grep -E "(^|\|)revision =" | cut -f2- -d= | tr -d \" | tr -d " " + test ${{ needs.build.outputs.debian_rev }} = cat Cargo.toml | grep -E "(^|\|)name =" | cut -f2- -d= | tr -d \" | tr -d " "