Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Fix invalid syntax in missing ops workflow #109

Merged
merged 1 commit into from
Dec 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions .github/workflows/missing-ops.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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<<EOF" >> $GITHUB_OUTPUT
cat missing_optypes.txt >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT

create-issue:
uses: CQCL/hugrverse-actions/.github/workflows/create-issue.yml@main
Expand All @@ -66,12 +68,11 @@ 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.
unique-label: "missing-ops"
other-labels: "bug"
secrets:
GITHUB_PAT: ${{ secrets.HUGRBOT_PAT }}
DIAGNOSTIC: ${{ needs.missing-optypes.outputs.diagnostic }}
Loading