Skip to content

Commit

Permalink
Remove the unused outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
yangliwei committed Feb 28, 2024
1 parent 9604878 commit 69e62da
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,12 @@ jobs:
- id: step2
run: echo "test=${{ contains(github.event.pull_request.labels.*.name, 'run-workflow') || github.event_name == 'push' }}" >> "$GITHUB_OUTPUT"
outputs:
cuda_on: ${{ steps.step1.outputs.test }}
git_event: ${{ steps.step2.outputs.test }}
test_gpu: ${{ fromJSON(steps.step1.outputs.test) && fromJSON(steps.step2.outputs.test) }}
cuda_avail: ${{ fromJSON(steps.step1.outputs.test) && fromJSON(steps.step2.outputs.test) }}

build:
# job to build
needs: check
if: ${{fromJSON(needs.check.outputs.test_gpu)}}
if: ${{fromJSON(needs.check.outputs.cuda_avail)}}
strategy:
matrix:
os: [ubuntu-latest]
Expand Down

0 comments on commit 69e62da

Please sign in to comment.