未验证 提交 c4c3e652 编写于 作者: A Anahide Tchertchian 提交者: GitHub

AAE-15950: fix fork check on other events than pull_request (#4398)

* AAE-15950: fix fork check on other events than pull_request

* remove now useless check
上级 6cea3c72
......@@ -14,7 +14,7 @@ runs:
REPO_NAME: ${{ github.repository }}
shell: bash
run: |
if [[ $SENDER_LOGIN != 'dependabot[bot]' && $PR_REPO_NAME == $REPO_NAME ]]
if [[ $SENDER_LOGIN != 'dependabot[bot]' && (-z $PR_REPO_NAME || $PR_REPO_NAME == $REPO_NAME) ]]
then
exit 0
fi
......@@ -22,9 +22,6 @@ runs:
if [[ $EVENT_NAME == 'labeled' && $LABEL == 'CI' ]]
then
echo "This workflow will run with actor who labeled the PR"
elif [ $EVENT_NAME == 'push' ]
then
echo "This workflow will run with actor who merged the PR"
else
echo "This workflow run was triggered by dependabot or an external contributor. Check and validate the changes, then add the 'CI' label to the pull request to trigger this workflow."
exit 1
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册