From df0650b1b8efbc8d865de48a843217c7588fc0f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Agust=C3=ADn=20Borgna?= Date: Tue, 17 Dec 2024 17:15:16 +0000 Subject: [PATCH] ci: Fix invalid syntax in missing ops workflow --- .github/workflows/missing-ops.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/missing-ops.yml b/.github/workflows/missing-ops.yml index 5d7a3eb..2b7fdb2 100644 --- a/.github/workflows/missing-ops.yml +++ b/.github/workflows/missing-ops.yml @@ -45,16 +45,18 @@ jobs: run: | set +e uv run -- cargo test --test integration -- --ignored missing_optypes --nocapture --test-threads=1 > missing_optypes.txt + cat missing_optypes.txt + echo if [ $? -eq 0 ]; then echo "The test passed." echo "fail=false" >> $GITHUB_OUTPUT else echo "The test failed with error code $?." - echo - cat missing_optypes.txt echo "fail=true" >> $GITHUB_OUTPUT fi - echo "diagnostic=$(cat missing_optypes.txt)" >> $GITHUB_OUTPUT + echo "diagnostic<> $GITHUB_OUTPUT + cat missing_optypes.txt >> $GITHUB_OUTPUT + echo "EOF" >> $GITHUB_OUTPUT create-issue: uses: CQCL/hugrverse-actions/.github/workflows/create-issue.yml@main @@ -66,7 +68,7 @@ jobs: ⚠️ `tket-json-rs` is missing OpType definitions. ``` - $DIAGNOSTIC + ${{ needs.missing-optypes.outputs.diagnostic }} ``` See [https://github.com/CQCL/tket-json-rs/actions/runs/${{ github.run_id }}](the failing check) for more info. @@ -74,4 +76,3 @@ jobs: other-labels: "bug" secrets: GITHUB_PAT: ${{ secrets.HUGRBOT_PAT }} - DIAGNOSTIC: ${{ needs.missing-optypes.outputs.diagnostic }}