Skip to content

Commit 038fdc5

Browse files
(CI)(modified-packages) fix missing BRANCH variable
1 parent 2355cf0 commit 038fdc5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ci/modified-packages/action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ runs:
1919
run: |
2020
PULLREQUEST=${{ github.event.number }}
2121
PULLREQUEST=${PULLREQUEST:-false}
22+
BRANCH=${GITHUB_BASE_REF:-${GITHUB_REF}}
2223
DEFAULT_BRANCH=${{ github.event.repository.default_branch }}
23-
if [[ ${{ github.event_name }} == "schedule" ]] || ([[ ${{ github.event_name }} == "push" ]] && [[ "$BRANCH" == "$DEFAULT_BRANCH" ]])
24+
if [[ "${GITHUB_EVENT_NAME}" == "schedule" ]] || ([[ "${GITHUB_EVENT_NAME}" == "push" ]] && [[ "${BRANCH}" == "${DEFAULT_BRANCH}" ]])
2425
then
2526
ALL=true
2627
fi

0 commit comments

Comments
 (0)