From 11a30653ce41ad2a8ce1ee767ff1589389675e54 Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers Date: Thu, 7 Sep 2023 13:50:00 -0400 Subject: [PATCH] Make use of `show-progress` when using `actions/checkout`. This suppresses progress output from the `actions/checkout` action, unless debug mode is enabled. --- .github/workflows/build-plugin-zip.yml | 5 +++++ .github/workflows/bundle-size.yml | 1 + .github/workflows/check-components-changelog.yml | 1 + .github/workflows/create-block.yml | 2 ++ .github/workflows/end2end-test.yml | 5 +++++ .github/workflows/gradle-wrapper-validation.yml | 2 ++ .github/workflows/performance.yml | 2 ++ .github/workflows/php-changes-detection.yml | 1 + .github/workflows/publish-npm-packages.yml | 3 +++ .github/workflows/pull-request-automation.yml | 1 + .github/workflows/rnmobile-android-runner.yml | 2 ++ .github/workflows/rnmobile-ios-runner.yml | 2 ++ .github/workflows/static-checks.yml | 2 ++ .github/workflows/storybook-pages.yml | 1 + .github/workflows/unit-test.yml | 8 ++++++++ .github/workflows/upload-release-to-plugin-repo.yml | 1 + 16 files changed, 39 insertions(+) diff --git a/.github/workflows/build-plugin-zip.yml b/.github/workflows/build-plugin-zip.yml index aa61d28ec827aa..5c06393ec3c01f 100644 --- a/.github/workflows/build-plugin-zip.yml +++ b/.github/workflows/build-plugin-zip.yml @@ -72,6 +72,7 @@ jobs: uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 with: token: ${{ secrets.GUTENBERG_TOKEN }} + show-progress: ${{ runner.debug == '1' && 'true' || 'false' }} - name: Compute old and new version id: get_version @@ -167,6 +168,7 @@ jobs: uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 with: ref: ${{ needs.bump-version.outputs.release_branch || github.ref }} + show-progress: ${{ runner.debug == '1' && 'true' || 'false' }} - name: Use desired version of Node.js uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1 @@ -224,6 +226,7 @@ jobs: fetch-depth: 2 ref: ${{ needs.bump-version.outputs.release_branch }} token: ${{ secrets.GUTENBERG_TOKEN }} + show-progress: ${{ runner.debug == '1' && 'true' || 'false' }} - name: Configure git user name and email run: | @@ -311,6 +314,7 @@ jobs: with: path: main ref: trunk + show-progress: ${{ runner.debug == '1' && 'true' || 'false' }} - name: Checkout (for publishing) uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 @@ -319,6 +323,7 @@ jobs: # Later, we switch this branch in the script that publishes packages. ref: trunk token: ${{ secrets.GUTENBERG_TOKEN }} + show-progress: ${{ runner.debug == '1' && 'true' || 'false' }} - name: Configure git user name and email (for publishing) run: | diff --git a/.github/workflows/bundle-size.yml b/.github/workflows/bundle-size.yml index 20303dc95cddaf..f5a28f78590970 100644 --- a/.github/workflows/bundle-size.yml +++ b/.github/workflows/bundle-size.yml @@ -40,6 +40,7 @@ jobs: - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 with: fetch-depth: 1 + show-progress: ${{ runner.debug == '1' && 'true' || 'false' }} - name: Use desired version of Node.js uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1 diff --git a/.github/workflows/check-components-changelog.yml b/.github/workflows/check-components-changelog.yml index b22d568170f4c1..5271b3883c1416 100644 --- a/.github/workflows/check-components-changelog.yml +++ b/.github/workflows/check-components-changelog.yml @@ -25,6 +25,7 @@ jobs: ref: ${{ github.event.pull_request.head.ref }} repository: ${{ github.event.pull_request.head.repo.full_name }} fetch-depth: ${{ env.PR_COMMIT_COUNT }} + show-progress: ${{ runner.debug == '1' && 'true' || 'false' }} - name: 'Fetch relevant history from origin' run: git fetch origin ${{ github.event.pull_request.base.ref }} - name: Check CHANGELOG status diff --git a/.github/workflows/create-block.yml b/.github/workflows/create-block.yml index 98a3608bf35d66..f3c9f64b970728 100644 --- a/.github/workflows/create-block.yml +++ b/.github/workflows/create-block.yml @@ -25,6 +25,8 @@ jobs: steps: - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 + with: + show-progress: ${{ runner.debug == '1' && 'true' || 'false' }} - name: Setup Node.js and install dependencies uses: ./.github/setup-node diff --git a/.github/workflows/end2end-test.yml b/.github/workflows/end2end-test.yml index 223fc8444a4a49..61cb39612fa55d 100644 --- a/.github/workflows/end2end-test.yml +++ b/.github/workflows/end2end-test.yml @@ -28,6 +28,8 @@ jobs: steps: - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 + with: + show-progress: ${{ runner.debug == '1' && 'true' || 'false' }} - name: Setup Node.js and install dependencies uses: ./.github/setup-node @@ -72,6 +74,8 @@ jobs: steps: - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 + with: + show-progress: ${{ runner.debug == '1' && 'true' || 'false' }} - name: Setup Node.js and install dependencies uses: ./.github/setup-node @@ -118,6 +122,7 @@ jobs: - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 with: ref: trunk + show-progress: ${{ runner.debug == '1' && 'true' || 'false' }} - uses: actions/download-artifact@v3 id: download_artifact diff --git a/.github/workflows/gradle-wrapper-validation.yml b/.github/workflows/gradle-wrapper-validation.yml index 65583dcd39339d..5e417c27bc82f7 100644 --- a/.github/workflows/gradle-wrapper-validation.yml +++ b/.github/workflows/gradle-wrapper-validation.yml @@ -7,4 +7,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 + with: + show-progress: ${{ runner.debug == '1' && 'true' || 'false' }} - uses: gradle/wrapper-validation-action@v1 diff --git a/.github/workflows/performance.yml b/.github/workflows/performance.yml index ca8c4f7135c2ae..7813f04874bc2f 100644 --- a/.github/workflows/performance.yml +++ b/.github/workflows/performance.yml @@ -33,6 +33,8 @@ jobs: steps: - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 + with: + show-progress: ${{ runner.debug == '1' && 'true' || 'false' }} - name: Setup Node.js and install dependencies uses: ./.github/setup-node diff --git a/.github/workflows/php-changes-detection.yml b/.github/workflows/php-changes-detection.yml index 766587db38fd1d..189639c3f47648 100644 --- a/.github/workflows/php-changes-detection.yml +++ b/.github/workflows/php-changes-detection.yml @@ -13,6 +13,7 @@ jobs: uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 with: fetch-depth: 0 + show-progress: ${{ runner.debug == '1' && 'true' || 'false' }} - name: Get changed PHP files id: changed-files-php diff --git a/.github/workflows/publish-npm-packages.yml b/.github/workflows/publish-npm-packages.yml index 8f87b6b142a1b4..7c2e9412cc1def 100644 --- a/.github/workflows/publish-npm-packages.yml +++ b/.github/workflows/publish-npm-packages.yml @@ -35,6 +35,7 @@ jobs: with: path: cli ref: trunk + show-progress: ${{ runner.debug == '1' && 'true' || 'false' }} - name: Checkout (for publishing) if: ${{ github.event.inputs.release_type != 'wp' }} @@ -44,6 +45,7 @@ jobs: # Later, we switch this branch in the script that publishes packages. ref: trunk token: ${{ secrets.GUTENBERG_TOKEN }} + show-progress: ${{ runner.debug == '1' && 'true' || 'false' }} - name: Checkout (for publishing WP major version) if: ${{ github.event.inputs.release_type == 'wp' && github.event.inputs.wp_version }} @@ -52,6 +54,7 @@ jobs: path: publish ref: wp/${{ github.event.inputs.wp_version }} token: ${{ secrets.GUTENBERG_TOKEN }} + show-progress: ${{ runner.debug == '1' && 'true' || 'false' }} - name: Configure git user name and email (for publishing) run: | diff --git a/.github/workflows/pull-request-automation.yml b/.github/workflows/pull-request-automation.yml index 44f510cb48bb46..6691fec3341c9d 100644 --- a/.github/workflows/pull-request-automation.yml +++ b/.github/workflows/pull-request-automation.yml @@ -18,6 +18,7 @@ jobs: - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 with: ref: trunk + show-progress: ${{ runner.debug == '1' && 'true' || 'false' }} - name: Use desired version of Node.js uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1 diff --git a/.github/workflows/rnmobile-android-runner.yml b/.github/workflows/rnmobile-android-runner.yml index adafa2974d340f..4b5a4393b70c5b 100644 --- a/.github/workflows/rnmobile-android-runner.yml +++ b/.github/workflows/rnmobile-android-runner.yml @@ -24,6 +24,8 @@ jobs: steps: - name: checkout uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 + with: + show-progress: ${{ runner.debug == '1' && 'true' || 'false' }} - name: Use desired version of Java uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3.12.0 diff --git a/.github/workflows/rnmobile-ios-runner.yml b/.github/workflows/rnmobile-ios-runner.yml index d29cc729b495de..3b82180be5567b 100644 --- a/.github/workflows/rnmobile-ios-runner.yml +++ b/.github/workflows/rnmobile-ios-runner.yml @@ -24,6 +24,8 @@ jobs: steps: - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 + with: + show-progress: ${{ runner.debug == '1' && 'true' || 'false' }} - name: Setup Node.js and install dependencies uses: ./.github/setup-node diff --git a/.github/workflows/static-checks.yml b/.github/workflows/static-checks.yml index 78b38dbab5c7dd..87e936757814ee 100644 --- a/.github/workflows/static-checks.yml +++ b/.github/workflows/static-checks.yml @@ -23,6 +23,8 @@ jobs: steps: - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 + with: + show-progress: ${{ runner.debug == '1' && 'true' || 'false' }} - name: Use desired version of Node.js uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1 diff --git a/.github/workflows/storybook-pages.yml b/.github/workflows/storybook-pages.yml index 54d4eb9d9d4a9a..d8932b4a4e277b 100644 --- a/.github/workflows/storybook-pages.yml +++ b/.github/workflows/storybook-pages.yml @@ -15,6 +15,7 @@ jobs: uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 with: ref: trunk + show-progress: ${{ runner.debug == '1' && 'true' || 'false' }} - name: Setup Node.js and install dependencies uses: ./.github/setup-node diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index 2c71beed2a44be..f48386cde43729 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -32,6 +32,8 @@ jobs: steps: - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 + with: + show-progress: ${{ runner.debug == '1' && 'true' || 'false' }} - name: Setup Node.js and install dependencies uses: ./.github/setup-node @@ -110,6 +112,8 @@ jobs: steps: - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 + with: + show-progress: ${{ runner.debug == '1' && 'true' || 'false' }} - name: Setup Node.js and install dependencies uses: ./.github/setup-node @@ -218,6 +222,8 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 + with: + show-progress: ${{ runner.debug == '1' && 'true' || 'false' }} - name: Set up PHP uses: shivammathur/setup-php@72ae4ccbe57f82bbe08411e84e2130bd4ba1c10f # v2.25.5 @@ -285,6 +291,8 @@ jobs: steps: - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 + with: + show-progress: ${{ runner.debug == '1' && 'true' || 'false' }} - name: Setup Node.js and install dependencies uses: ./.github/setup-node diff --git a/.github/workflows/upload-release-to-plugin-repo.yml b/.github/workflows/upload-release-to-plugin-repo.yml index 036aad788498a8..d7fdb9b3fe3796 100644 --- a/.github/workflows/upload-release-to-plugin-repo.yml +++ b/.github/workflows/upload-release-to-plugin-repo.yml @@ -100,6 +100,7 @@ jobs: with: ref: ${{ matrix.branch }} token: ${{ secrets.GUTENBERG_TOKEN }} + show-progress: ${{ runner.debug == '1' && 'true' || 'false' }} - name: Update the Changelog to include the release notes run: |