Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
liushilongbuaa committed Mar 8, 2023
1 parent 4773b44 commit 552b258
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/automerge_scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
automerge_scan:
#if: github.repository_owner == 'sonic-net'
if: github.repository_owner == 'sonic-net'
runs-on: ubuntu-latest
steps:
- name: Debug
Expand Down Expand Up @@ -42,9 +42,11 @@ jobs:
# EasyCLA success flag: state=SUCCESS
# Others success flag: conclusion in SUCCESS,NEUTRAL
if echo $name | grep Semgrep;then
continue
elif [[ "$state" == "SUCCESS" ]];then
# Ignore Azure.sonic-buildimage stage check result. It may be set continueOnError
echo "$name" | grep "Azure.sonic-buildimage (" && continue
# Ignore Semgrep, it has issues.
[[ "$name" == "Semgrep" ]] && continue
if [[ "$state" == "SUCCESS" ]];then
# check pass
continue
elif [[ "$conclusion" == "SUCCESS" ]] || [[ "$conclusion" == "NEUTRAL" ]];then
Expand All @@ -53,9 +55,6 @@ jobs:
else
echo "$url Check failed!!!"
echo $check | jq
if [[ $created_at > $(date --date "1 day ago" -u +"%FT%TZ") ]];then
gh pr comment $url -b "/azp run Azure.sonic-buildimage"
fi
continue 2
fi
done
Expand Down

0 comments on commit 552b258

Please sign in to comment.