Skip to content

Commit

Permalink
try another way to reference main
Browse files Browse the repository at this point in the history
  • Loading branch information
cesine committed Nov 19, 2024
1 parent 71bcbf9 commit e6fc620
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ jobs:

- name: Check for changed dist files
run: |
DIST_CHANGED=$(git diff --name-only HEAD ${{ github.event.pull_request.base.ref }} | egrep 'rickshaw(\.min)?\.(js|css)')
git fetch origin main --depth=1
DIST_CHANGED=$(git diff --name-only HEAD origin/main | egrep 'rickshaw(\.min)?\.(js|css)')
if [[ ! -z "$DIST_CHANGED" ]]; then
echo -e "\033[31m${{ env.FAIL_IF_DIST_MESSAGE }} $DIST_CHANGED"
exit 1
Expand Down

0 comments on commit e6fc620

Please sign in to comment.