Skip to content

Commit

Permalink
🐞 Change if check (#501)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwinvaidya17 committed Aug 12, 2022
1 parent bc788dd commit 37bc8de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ Config:
Callbacks:
- "anomalib/utils/callbacks/**/*"

CI:
- ".github/**/*"
- "tox.ini"

CLI:
- "anomalib/utils/cli/**/*"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre_merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
# If the workflow is triggered from PR then it gets the commit id from the PR.
# else it uses the commit id of the latest commit. This is because the commit
# of the checked-out branch/commit does not exist in the tree as it is grafted.
if [[ ${{ github.event.pull_request.head.sha }} ]]
if [ -n "${{ github.event.pull_request.head.sha }}" ]
then
COMMIT_ID=${{ github.event.pull_request.head.sha }}
else
Expand Down

0 comments on commit 37bc8de

Please sign in to comment.