From ee1f5013a728095d2146f1b60e5b3d94abf5d783 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Mon, 27 Jan 2025 12:31:15 +0100 Subject: [PATCH 1/2] Show full CLI output in the log file --- action.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/action.yml b/action.yml index 4a83dfe..c1fefc4 100644 --- a/action.yml +++ b/action.yml @@ -141,9 +141,16 @@ runs: echo "::endgroup::" wp-env run cli wp plugin activate $PLUGIN_SLUG + + echo "::group::Run Plugin Check" # Run Plugin Check wp-env run cli wp plugin check $PLUGIN_SLUG --format=json $ADDITIONAL_ARGS --require=./wp-content/plugins/plugin-check/cli.php > ${{ runner.temp }}/plugin-check-results.txt + + cat ${{ runner.temp }}/plugin-check-results.txt + + echo "::endgroup::" + shell: bash env: CHECKS: ${{ inputs.checks && format('--checks={0}', inputs.checks) || '' }} From 9c666d6643c0290dd2390ad50d712234968926d9 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Mon, 27 Jan 2025 12:32:42 +0100 Subject: [PATCH 2/2] Upload artifact --- action.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/action.yml b/action.yml index c1fefc4..ddd82f0 100644 --- a/action.yml +++ b/action.yml @@ -175,3 +175,9 @@ runs: env: INPUT_REPO_TOKEN: ${{ inputs.repo-token }} STRICT: ${{ inputs.strict }} + + - name: Upload artifact + uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0 + with: + name: plugin-check-results + path: ${{ runner.temp }}/plugin-check-results.txt