diff --git a/action.yml b/action.yml index 55d76cf..16f5a9f 100644 --- a/action.yml +++ b/action.yml @@ -296,6 +296,7 @@ runs: PLUGIN_NAME: ${{ inputs.plugin-name }} WORKSPACE: ${{ github.workspace }} ACTION_PATH: ${{ github.action_path }} + COMPOSER_AUTH: '{"github-oauth": {"github.com": "${{ github.token }}"}}' - name: checkout additional plugins if: inputs.dependent-plugins != '' diff --git a/scripts/bash/prepare.sh b/scripts/bash/prepare.sh index 71cb5d7..53cdc47 100755 --- a/scripts/bash/prepare.sh +++ b/scripts/bash/prepare.sh @@ -12,9 +12,13 @@ echo -e "${GREEN}Using workspace path $WORKSPACE ${SET}" if [ "$TEST_SUITE" = "UI" ]; then cd $WORKSPACE/matomo - git lfs pull --exclude= if [ "$PLUGIN_NAME" != '' ]; then + # Plugin builds only compare the plugin's own screenshots, so skip Matomo + # core's screenshots (~124MB) and scope the plugin's pull to its UI dir. cd $WORKSPACE/matomo/plugins/$PLUGIN_NAME + git lfs pull --include="tests/UI/expected-screenshots/*" --exclude= + else + # Matomo core build: the calling workflow scopes via `git config lfs.fetchinclude`. git lfs pull --exclude= fi echo -e "${GREEN}setup fonts${SET}"