diff --git a/.github/workflows/valgrind.yml b/.github/workflows/valgrind.yml index 8a5db9f7..0ee9ac5b 100644 --- a/.github/workflows/valgrind.yml +++ b/.github/workflows/valgrind.yml @@ -26,8 +26,8 @@ jobs: name: Create an issue if valgrind failed runs-on: ubuntu-latest needs: [valgrind] - #if: ${{ github.repository == 'Akuli/jou' && always() && github.event_name == 'schedule' && valgrind }} - if: ${{ github.repository == 'Akuli/jou' && always() && valgrind }} + #if: ${{ github.repository == 'Akuli/jou' && always() && github.event_name == 'schedule' && needs.valgrind.result == 'failure' }} + if: ${{ github.repository == 'Akuli/jou' && always() && needs.valgrind.result == 'failure' }} permissions: issues: write steps: