Skip to content

Commit 9483a87

Browse files
committed
(CI)(modified-packages) clean GITHUB_REF
1 parent 35cd7d1 commit 9483a87

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ci/modified-packages/action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ runs:
1919
run: |
2020
PULLREQUEST=${{ github.event.number }}
2121
PULLREQUEST=${PULLREQUEST:-false}
22+
GITHUB_REF=${GITHUB_REF#refs/heads/}
23+
GITHUB_REF=${GITHUB_REF#refs/tags/}
2224
BRANCH=${GITHUB_BASE_REF:-${GITHUB_REF}}
2325
DEFAULT_BRANCH=${{ github.event.repository.default_branch }}
2426
if [[ "${GITHUB_EVENT_NAME}" == "schedule" ]] || ([[ "${GITHUB_EVENT_NAME}" == "push" ]] && [[ "${BRANCH}" == "${DEFAULT_BRANCH}" ]])

0 commit comments

Comments
 (0)