Skip to content

Commit 35cd7d1

Browse files
(CI)(modified-packages) fix missing BRANCH variable (#633)
2 parents 2355cf0 + 3dc5d33 commit 35cd7d1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.3.10
1+
1.3.11

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)