diff --git a/.github/workflows/check_commit_metadata.yml b/.github/workflows/check_commit_metadata.yml index ea596a55ed93..393c6f1b4f8f 100644 --- a/.github/workflows/check_commit_metadata.yml +++ b/.github/workflows/check_commit_metadata.yml @@ -72,4 +72,4 @@ jobs: COMMIT_METADATA: ${{ steps.extract-metadata.outputs.metadata }} GITHUB_TOKEN: ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }} run: | - . "$GITHUB_WORKSPACE/.github/workflows/scripts/check_commit_metadata" $PR_NUMBER $COMMIT_METADATA + . "$GITHUB_WORKSPACE/.github/workflows/scripts/check_commit_metadata/run" $PR_NUMBER $COMMIT_METADATA diff --git a/.github/workflows/check_contributing_guidelines_acceptance.yml b/.github/workflows/check_contributing_guidelines_acceptance.yml index b64a38038704..4d629b087d01 100644 --- a/.github/workflows/check_contributing_guidelines_acceptance.yml +++ b/.github/workflows/check_contributing_guidelines_acceptance.yml @@ -84,4 +84,4 @@ jobs: GITHUB_TOKEN: ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }} PR_NUMBER: ${{ github.event.pull_request.number || inputs.pull_request_number }} run: | - . "$GITHUB_WORKSPACE/.github/workflows/scripts/check_contributing_guidelines_acceptance" $PR_NUMBER + . "$GITHUB_WORKSPACE/.github/workflows/scripts/check_contributing_guidelines_acceptance/run" $PR_NUMBER diff --git a/.github/workflows/check_duplicate_prs.yml b/.github/workflows/check_duplicate_prs.yml index 9a62affd9e98..bcb76781e4a2 100644 --- a/.github/workflows/check_duplicate_prs.yml +++ b/.github/workflows/check_duplicate_prs.yml @@ -76,5 +76,5 @@ jobs: GITHUB_TOKEN: ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }} DEBUG: ${{ inputs.debug || 'false' }} run: | - . "$GITHUB_WORKSPACE/.github/workflows/scripts/check_duplicate_prs" + . "$GITHUB_WORKSPACE/.github/workflows/scripts/check_duplicate_prs/run" timeout-minutes: 15 diff --git a/.github/workflows/check_licenses.yml b/.github/workflows/check_licenses.yml index 8db4e73b92da..f9640bac7e9c 100644 --- a/.github/workflows/check_licenses.yml +++ b/.github/workflows/check_licenses.yml @@ -114,7 +114,7 @@ jobs: # Run the build task: - name: 'Run build task' run: | - . "$GITHUB_WORKSPACE/.github/workflows/scripts/task_runner" "${{ env.BUILD_TASK }}" "${{ env.LOG_FILE_BUILD_TASK }}" + . "$GITHUB_WORKSPACE/.github/workflows/scripts/common/task_runner" "${{ env.BUILD_TASK }}" "${{ env.LOG_FILE_BUILD_TASK }}" timeout-minutes: 360 # View the log file if the previous step fails: diff --git a/.github/workflows/check_tracking_issue_closure.yml b/.github/workflows/check_tracking_issue_closure.yml index 5cc133b35839..539b91f727a6 100644 --- a/.github/workflows/check_tracking_issue_closure.yml +++ b/.github/workflows/check_tracking_issue_closure.yml @@ -67,7 +67,7 @@ jobs: # Run the script to check PRs for tracking issue closure: - name: 'Check PRs for tracking issue closure' run: | - . "$GITHUB_WORKSPACE/.github/workflows/scripts/check_tracking_issue_closure" 1 + . "$GITHUB_WORKSPACE/.github/workflows/scripts/check_tracking_issue_closure/run" 1 env: GITHUB_TOKEN: ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }} DEBUG: ${{ inputs.debug || 'false' }} diff --git a/.github/workflows/create_address_commit_comment_issues.yml b/.github/workflows/create_address_commit_comment_issues.yml index 5cabb332cd8a..819e0c9635dc 100644 --- a/.github/workflows/create_address_commit_comment_issues.yml +++ b/.github/workflows/create_address_commit_comment_issues.yml @@ -66,5 +66,5 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }} run: | - . "$GITHUB_WORKSPACE/.github/workflows/scripts/create_address_commit_comments_issues" 14 + . "$GITHUB_WORKSPACE/.github/workflows/scripts/create_address_commit_comments_issues/run" 14 timeout-minutes: 15 diff --git a/.github/workflows/first_time_greeting.yml b/.github/workflows/first_time_greeting.yml index 6d265ddb8d2c..e7d5a94d949a 100644 --- a/.github/workflows/first_time_greeting.yml +++ b/.github/workflows/first_time_greeting.yml @@ -69,4 +69,4 @@ jobs: ISSUE_NUMBER: ${{ github.event.issue.number || github.event.pull_request.number }} GITHUB_TOKEN: ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }} run: | - . "$GITHUB_WORKSPACE/.github/workflows/scripts/first_time_greeting" $ISSUE_NUMBER + . "$GITHUB_WORKSPACE/.github/workflows/scripts/first_time_greeting/run" $ISSUE_NUMBER diff --git a/.github/workflows/generate_pr_commit_message.yml b/.github/workflows/generate_pr_commit_message.yml index 67abdfb84490..d7e8e1b780f2 100644 --- a/.github/workflows/generate_pr_commit_message.yml +++ b/.github/workflows/generate_pr_commit_message.yml @@ -67,7 +67,7 @@ jobs: id: commit_message shell: bash {0} # Omit -e to avoid triggering a failure if the script returns a non-zero exit code run: | - COMMIT_MESSAGE=$($GITHUB_WORKSPACE/.github/workflows/scripts/generate_pr_commit_message $PR_NUMBER) + COMMIT_MESSAGE=$($GITHUB_WORKSPACE/.github/workflows/scripts/generate_pr_commit_message/run $PR_NUMBER) EXIT_CODE=$? echo "commit_message<> $GITHUB_OUTPUT diff --git a/.github/workflows/label_good_first_prs.yml b/.github/workflows/label_good_first_prs.yml index 0be60d8ad373..b5ce82c373ad 100644 --- a/.github/workflows/label_good_first_prs.yml +++ b/.github/workflows/label_good_first_prs.yml @@ -68,7 +68,7 @@ jobs: env: PR_NUMBER: ${{ github.event.pull_request.number }} run: | - bool=$(. "$GITHUB_WORKSPACE/.github/workflows/scripts/references_good_first_issue" $PR_NUMBER) + bool=$(. "$GITHUB_WORKSPACE/.github/workflows/scripts/label_good_first_prs/references_good_first_issue" $PR_NUMBER) echo "good-first-pr=$bool" >> $GITHUB_OUTPUT # Add "Good First PR" label if PR references a "Good First Issue" diff --git a/.github/workflows/lint_autofix.yml b/.github/workflows/lint_autofix.yml index 069a621d2bea..9cf7f506b94c 100644 --- a/.github/workflows/lint_autofix.yml +++ b/.github/workflows/lint_autofix.yml @@ -138,20 +138,20 @@ jobs: id: fix-lint-errors run: | files="${{ steps.changed-files.outputs.files }}" - FIX=1 . "$GITHUB_WORKSPACE/.github/workflows/scripts/lint_javascript_files" "$files" || true + FIX=1 . "$GITHUB_WORKSPACE/.github/workflows/scripts/common/lint_javascript_files" "$files" || true # Add missing trailing newlines: - name: 'Add missing trailing newlines' id: add-trailing-newlines run: | files="${{ steps.changed-files.outputs.files }}" - . "$GITHUB_WORKSPACE/.github/workflows/scripts/add_trailing_newlines" "$files" + . "$GITHUB_WORKSPACE/.github/workflows/scripts/lint_autofix/add_trailing_newlines" "$files" # Remove related packages from README.md files: - name: 'Remove related packages from README.md files' run: | files="${{ steps.changed-files.outputs.files }}" - . "$GITHUB_WORKSPACE/.github/workflows/scripts/remove_related_packages" "$files" + . "$GITHUB_WORKSPACE/.github/workflows/scripts/lint_autofix/remove_related_packages" "$files" # Disable Git hooks: - name: 'Disable Git hooks' diff --git a/.github/workflows/lint_changed_files.yml b/.github/workflows/lint_changed_files.yml index df2508cba52b..e50735e6caa6 100644 --- a/.github/workflows/lint_changed_files.yml +++ b/.github/workflows/lint_changed_files.yml @@ -169,7 +169,7 @@ jobs: - name: 'Lint package.json files' if: success() || failure() run: | - . "$GITHUB_WORKSPACE/.github/workflows/scripts/lint_package_json_files" "${{ steps.changed-files.outputs.files }}" + . "$GITHUB_WORKSPACE/.github/workflows/scripts/common/lint_package_json_files" "${{ steps.changed-files.outputs.files }}" # Lint REPL help files... - name: 'Lint REPL help files' diff --git a/.github/workflows/lint_random_files.yml b/.github/workflows/lint_random_files.yml index f36ee6cf9435..4854a08cfd7c 100644 --- a/.github/workflows/lint_random_files.yml +++ b/.github/workflows/lint_random_files.yml @@ -238,7 +238,7 @@ jobs: - Reference this issue in the "Related Issues" section of the PR body as "resolves #". EOF - . "$GITHUB_WORKSPACE/.github/workflows/scripts/create_sub_issue" \ + . "$GITHUB_WORKSPACE/.github/workflows/scripts/common/create_sub_issue" \ 'Fix EditorConfig lint errors' \ "$BODY_FILE" \ "5156" \ @@ -312,7 +312,7 @@ jobs: # Run the lint script: if [ -n "${files}" ]; then - "$GITHUB_WORKSPACE/.github/workflows/scripts/lint_javascript_files_error_log" ${files} + "$GITHUB_WORKSPACE/.github/workflows/scripts/common/lint_javascript_files_error_log" ${files} else echo "No JavaScript files to lint." fi @@ -347,7 +347,7 @@ jobs: - Reference this issue in the "Related Issues" section of the PR body as "resolves #". EOF - . "$GITHUB_WORKSPACE/.github/workflows/scripts/create_sub_issue" \ + . "$GITHUB_WORKSPACE/.github/workflows/scripts/common/create_sub_issue" \ 'Fix JavaScript lint errors' \ "$BODY_FILE" \ "5377" \ @@ -493,7 +493,7 @@ jobs: - Reference this issue in the "Related Issues" section of the PR body as "resolves #". EOF - . "$GITHUB_WORKSPACE/.github/workflows/scripts/create_sub_issue" \ + . "$GITHUB_WORKSPACE/.github/workflows/scripts/common/create_sub_issue" \ 'Fix C lint errors' \ "$BODY_FILE" \ "3235" # Number of C lint error tracking issue @@ -546,7 +546,7 @@ jobs: - Reference this issue in the "Related Issues" section of the PR body as "resolves #". EOF - . "$GITHUB_WORKSPACE/.github/workflows/scripts/create_sub_issue" \ + . "$GITHUB_WORKSPACE/.github/workflows/scripts/common/create_sub_issue" \ 'Fix TypeScript declarations lint errors' \ "$BODY_FILE" \ "9110" \ diff --git a/.github/workflows/linux_benchmark.yml b/.github/workflows/linux_benchmark.yml index cd9211c22a74..e16ceeb6b498 100644 --- a/.github/workflows/linux_benchmark.yml +++ b/.github/workflows/linux_benchmark.yml @@ -223,7 +223,7 @@ jobs: # Perform install sequence: - name: 'Perform install sequence' run: | - . "$GITHUB_WORKSPACE/.github/workflows/scripts/task_runner" install "${{ env.LOG_FILE_INSTALL }}" + . "$GITHUB_WORKSPACE/.github/workflows/scripts/common/task_runner" install "${{ env.LOG_FILE_INSTALL }}" timeout-minutes: 30 # View the log file if the previous step fails: @@ -237,7 +237,7 @@ jobs: # Run the build task: - name: 'Run build task' run: | - . "$GITHUB_WORKSPACE/.github/workflows/scripts/task_runner" ${{ matrix.BUILD_TASK }} "${{ env.LOG_FILE_BUILD_TASK }}" + . "$GITHUB_WORKSPACE/.github/workflows/scripts/common/task_runner" ${{ matrix.BUILD_TASK }} "${{ env.LOG_FILE_BUILD_TASK }}" timeout-minutes: 360 # View the log file if the previous step fails: diff --git a/.github/workflows/linux_examples.yml b/.github/workflows/linux_examples.yml index a58258fa507b..e22ed1d09ab2 100644 --- a/.github/workflows/linux_examples.yml +++ b/.github/workflows/linux_examples.yml @@ -223,7 +223,7 @@ jobs: # Perform install sequence: - name: 'Perform install sequence' run: | - . "$GITHUB_WORKSPACE/.github/workflows/scripts/task_runner" install "${{ env.LOG_FILE_INSTALL }}" + . "$GITHUB_WORKSPACE/.github/workflows/scripts/common/task_runner" install "${{ env.LOG_FILE_INSTALL }}" timeout-minutes: 30 # View the log file if the previous step fails: @@ -237,7 +237,7 @@ jobs: # Run the build task: - name: 'Run build task' run: | - . "$GITHUB_WORKSPACE/.github/workflows/scripts/task_runner" ${{ matrix.BUILD_TASK }} "${{ env.LOG_FILE_BUILD_TASK }}" + . "$GITHUB_WORKSPACE/.github/workflows/scripts/common/task_runner" ${{ matrix.BUILD_TASK }} "${{ env.LOG_FILE_BUILD_TASK }}" timeout-minutes: 360 # View the log file if the previous step fails: diff --git a/.github/workflows/linux_test.yml b/.github/workflows/linux_test.yml index 1cec33732875..18c284616b91 100644 --- a/.github/workflows/linux_test.yml +++ b/.github/workflows/linux_test.yml @@ -222,7 +222,7 @@ jobs: # Perform install sequence: - name: 'Perform install sequence' run: | - . "$GITHUB_WORKSPACE/.github/workflows/scripts/task_runner" install "${{ env.LOG_FILE_INSTALL }}" + . "$GITHUB_WORKSPACE/.github/workflows/scripts/common/task_runner" install "${{ env.LOG_FILE_INSTALL }}" timeout-minutes: 30 # View the log file if the previous step fails: @@ -236,7 +236,7 @@ jobs: # Run the build task: - name: 'Run build task' run: | - . "$GITHUB_WORKSPACE/.github/workflows/scripts/task_runner" ${{ matrix.BUILD_TASK }} "${{ env.LOG_FILE_BUILD_TASK }}" + . "$GITHUB_WORKSPACE/.github/workflows/scripts/common/task_runner" ${{ matrix.BUILD_TASK }} "${{ env.LOG_FILE_BUILD_TASK }}" timeout-minutes: 360 # View the log file if the previous step fails: diff --git a/.github/workflows/linux_test_cov.yml b/.github/workflows/linux_test_cov.yml index 12b69439727a..e30ded2e16a3 100644 --- a/.github/workflows/linux_test_cov.yml +++ b/.github/workflows/linux_test_cov.yml @@ -223,7 +223,7 @@ jobs: # Perform install sequence: - name: 'Perform install sequence' run: | - . "$GITHUB_WORKSPACE/.github/workflows/scripts/task_runner" install "${{ env.LOG_FILE_INSTALL }}" + . "$GITHUB_WORKSPACE/.github/workflows/scripts/common/task_runner" install "${{ env.LOG_FILE_INSTALL }}" timeout-minutes: 30 # View the log file if the previous step fails: @@ -237,7 +237,7 @@ jobs: # Run the build task: - name: 'Run build task' run: | - . "$GITHUB_WORKSPACE/.github/workflows/scripts/task_runner" ${{ matrix.BUILD_TASK }} "${{ env.LOG_FILE_BUILD_TASK }}" + . "$GITHUB_WORKSPACE/.github/workflows/scripts/common/task_runner" ${{ matrix.BUILD_TASK }} "${{ env.LOG_FILE_BUILD_TASK }}" timeout-minutes: 360 # View the log file if the previous step fails: diff --git a/.github/workflows/linux_test_install.yml b/.github/workflows/linux_test_install.yml index 44e3f38c2675..b94ff47aa0c1 100644 --- a/.github/workflows/linux_test_install.yml +++ b/.github/workflows/linux_test_install.yml @@ -260,7 +260,7 @@ jobs: # Run the build task: - name: 'Run build task' run: | - . "$GITHUB_WORKSPACE/.github/workflows/scripts/test_install" "${{ matrix.PACKAGE_MANAGER }}" "${{ env.INSTALL_DIR }}" "${{ env.LOG_FILE_BUILD_TASK }}" + . "$GITHUB_WORKSPACE/.github/workflows/scripts/common/test_install" "${{ matrix.PACKAGE_MANAGER }}" "${{ env.INSTALL_DIR }}" "${{ env.LOG_FILE_BUILD_TASK }}" timeout-minutes: 360 # View the log file if the previous step fails: diff --git a/.github/workflows/macos_benchmark.yml b/.github/workflows/macos_benchmark.yml index 5911729ae18f..01f3002d1253 100644 --- a/.github/workflows/macos_benchmark.yml +++ b/.github/workflows/macos_benchmark.yml @@ -209,7 +209,7 @@ jobs: # Perform install sequence: - name: 'Perform install sequence' run: | - . "$GITHUB_WORKSPACE/.github/workflows/scripts/task_runner" install "${{ env.LOG_FILE_INSTALL }}" + . "$GITHUB_WORKSPACE/.github/workflows/scripts/common/task_runner" install "${{ env.LOG_FILE_INSTALL }}" timeout-minutes: 30 # View the log file if the previous step fails: @@ -223,7 +223,7 @@ jobs: # Run the build task: - name: 'Run build task' run: | - . "$GITHUB_WORKSPACE/.github/workflows/scripts/task_runner" ${{ matrix.BUILD_TASK }} "${{ env.LOG_FILE_BUILD_TASK }}" + . "$GITHUB_WORKSPACE/.github/workflows/scripts/common/task_runner" ${{ matrix.BUILD_TASK }} "${{ env.LOG_FILE_BUILD_TASK }}" timeout-minutes: 360 # View the log file if the previous step fails: diff --git a/.github/workflows/macos_test.yml b/.github/workflows/macos_test.yml index eb59e0879fd0..5a33f5898f6b 100644 --- a/.github/workflows/macos_test.yml +++ b/.github/workflows/macos_test.yml @@ -208,7 +208,7 @@ jobs: # Perform install sequence: - name: 'Perform install sequence' run: | - . "$GITHUB_WORKSPACE/.github/workflows/scripts/task_runner" install "${{ env.LOG_FILE_INSTALL }}" + . "$GITHUB_WORKSPACE/.github/workflows/scripts/common/task_runner" install "${{ env.LOG_FILE_INSTALL }}" timeout-minutes: 30 # View the log file if the previous step fails: @@ -222,7 +222,7 @@ jobs: # Run the build task: - name: 'Run build task' run: | - . "$GITHUB_WORKSPACE/.github/workflows/scripts/task_runner" ${{ matrix.BUILD_TASK }} "${{ env.LOG_FILE_BUILD_TASK }}" + . "$GITHUB_WORKSPACE/.github/workflows/scripts/common/task_runner" ${{ matrix.BUILD_TASK }} "${{ env.LOG_FILE_BUILD_TASK }}" timeout-minutes: 360 # View the log file if the previous step fails: diff --git a/.github/workflows/macos_test_cov.yml b/.github/workflows/macos_test_cov.yml index 3bf81edff659..71f4d84c6df3 100644 --- a/.github/workflows/macos_test_cov.yml +++ b/.github/workflows/macos_test_cov.yml @@ -209,7 +209,7 @@ jobs: # Perform install sequence: - name: 'Perform install sequence' run: | - . "$GITHUB_WORKSPACE/.github/workflows/scripts/task_runner" install "${{ env.LOG_FILE_INSTALL }}" + . "$GITHUB_WORKSPACE/.github/workflows/scripts/common/task_runner" install "${{ env.LOG_FILE_INSTALL }}" timeout-minutes: 30 # View the log file if the previous step fails: @@ -223,7 +223,7 @@ jobs: # Run the build task: - name: 'Run build task' run: | - . "$GITHUB_WORKSPACE/.github/workflows/scripts/task_runner" ${{ matrix.BUILD_TASK }} "${{ env.LOG_FILE_BUILD_TASK }}" + . "$GITHUB_WORKSPACE/.github/workflows/scripts/common/task_runner" ${{ matrix.BUILD_TASK }} "${{ env.LOG_FILE_BUILD_TASK }}" timeout-minutes: 360 # View the log file if the previous step fails: diff --git a/.github/workflows/macos_test_npm_install.yml b/.github/workflows/macos_test_npm_install.yml index f8e01112fd2d..13cd14bdfc5a 100644 --- a/.github/workflows/macos_test_npm_install.yml +++ b/.github/workflows/macos_test_npm_install.yml @@ -219,7 +219,7 @@ jobs: # Run the build task: - name: 'Run build task' run: | - . "$GITHUB_WORKSPACE/.github/workflows/scripts/task_runner" ${{ matrix.BUILD_TASK }} "${{ env.LOG_FILE_BUILD_TASK }}" + . "$GITHUB_WORKSPACE/.github/workflows/scripts/common/task_runner" ${{ matrix.BUILD_TASK }} "${{ env.LOG_FILE_BUILD_TASK }}" timeout-minutes: 360 # View the log file if the previous step fails: diff --git a/.github/workflows/markdown_links.yml b/.github/workflows/markdown_links.yml index ffc825e74ef7..5c57a803bef7 100644 --- a/.github/workflows/markdown_links.yml +++ b/.github/workflows/markdown_links.yml @@ -168,7 +168,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }} run: | - "$GITHUB_WORKSPACE/.github/workflows/scripts/create_broken_link_issues" \ + "$GITHUB_WORKSPACE/.github/workflows/scripts/markdown_links/create_broken_link_issues" \ '${{ steps.results.outputs.failures }}' \ "9112" timeout-minutes: 30 diff --git a/.github/workflows/merge_ready_prs.yml b/.github/workflows/merge_ready_prs.yml index c3584402d673..892f18f70aea 100644 --- a/.github/workflows/merge_ready_prs.yml +++ b/.github/workflows/merge_ready_prs.yml @@ -63,7 +63,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }} run: | if [ "${{ inputs.dry-run }}" == "true" ]; then - . "$GITHUB_WORKSPACE/.github/workflows/scripts/merge_ready_prs" --dry-run + . "$GITHUB_WORKSPACE/.github/workflows/scripts/merge_ready_prs/merge_ready_prs" --dry-run else - . "$GITHUB_WORKSPACE/.github/workflows/scripts/merge_ready_prs" + . "$GITHUB_WORKSPACE/.github/workflows/scripts/merge_ready_prs/merge_ready_prs" fi diff --git a/.github/workflows/pr_commands_comment.yml b/.github/workflows/pr_commands_comment.yml index 728cf2b41dd4..f08fcb96e993 100644 --- a/.github/workflows/pr_commands_comment.yml +++ b/.github/workflows/pr_commands_comment.yml @@ -94,5 +94,5 @@ jobs: GITHUB_TOKEN: ${{ secrets.STDLIB_BOT_GITHUB_TOKEN || secrets.STDLIB_BOT_PAT_REPO_WRITE }} DEBUG: ${{ inputs.debug || 'false' }} run: | - . "$GITHUB_WORKSPACE/.github/workflows/scripts/package_commands_comment" "$PR_NUMBER" + . "$GITHUB_WORKSPACE/.github/workflows/scripts/pr_commands_comment/package_commands_comment" "$PR_NUMBER" timeout-minutes: 30 diff --git a/.github/workflows/run_affected_benchmarks.yml b/.github/workflows/run_affected_benchmarks.yml index 3912d985dde2..0cf033eef9ea 100644 --- a/.github/workflows/run_affected_benchmarks.yml +++ b/.github/workflows/run_affected_benchmarks.yml @@ -150,5 +150,5 @@ jobs: else directories="${{ steps.changed-directories.outputs.directories }}" fi - . "$GITHUB_WORKSPACE/.github/workflows/scripts/run_affected_benchmarks" "$directories" + . "$GITHUB_WORKSPACE/.github/workflows/scripts/run_affected_benchmarks/run" "$directories" timeout-minutes: 60 diff --git a/.github/workflows/run_affected_tests.yml b/.github/workflows/run_affected_tests.yml index 87db9127f48f..5a4edcd27fa5 100644 --- a/.github/workflows/run_affected_tests.yml +++ b/.github/workflows/run_affected_tests.yml @@ -182,5 +182,5 @@ jobs: else directories="${{ steps.changed-directories.outputs.directories }}" fi - . "$GITHUB_WORKSPACE/.github/workflows/scripts/run_affected_tests" "$directories" + . "$GITHUB_WORKSPACE/.github/workflows/scripts/run_affected_tests/run" "$directories" timeout-minutes: 30 diff --git a/.github/workflows/run_tests_coverage.yml b/.github/workflows/run_tests_coverage.yml index 15c39245a73a..a2a5fd5ea56a 100644 --- a/.github/workflows/run_tests_coverage.yml +++ b/.github/workflows/run_tests_coverage.yml @@ -176,7 +176,7 @@ jobs: directories="${{ steps.changed-directories.outputs.directories }}" fi - . "$GITHUB_WORKSPACE/.github/workflows/scripts/run_tests_coverage" "$directories" + . "$GITHUB_WORKSPACE/.github/workflows/scripts/run_tests_coverage/run" "$directories" timeout-minutes: 30 # Create final coverage report: diff --git a/.github/workflows/run_tests_coverage_pr.yml b/.github/workflows/run_tests_coverage_pr.yml index 5b48de6e48a1..6e7291672365 100644 --- a/.github/workflows/run_tests_coverage_pr.yml +++ b/.github/workflows/run_tests_coverage_pr.yml @@ -151,7 +151,7 @@ jobs: COVERAGE_BASE_URL: 'https://coverage.stdlib.io/pr-${{ github.event.pull_request.number }}' run: | directories="${{ steps.changed-directories.outputs.directories }}" - . "$GITHUB_WORKSPACE/.github/workflows/scripts/run_tests_coverage" "$directories" + . "$GITHUB_WORKSPACE/.github/workflows/scripts/run_tests_coverage/run" "$directories" timeout-minutes: 30 # Create final coverage report: diff --git a/.github/workflows/scripts/check_commit_metadata b/.github/workflows/scripts/check_commit_metadata/run similarity index 99% rename from .github/workflows/scripts/check_commit_metadata rename to .github/workflows/scripts/check_commit_metadata/run index 97a00ba1d1e6..b23e0229ea7d 100755 --- a/.github/workflows/scripts/check_commit_metadata +++ b/.github/workflows/scripts/check_commit_metadata/run @@ -18,8 +18,6 @@ # Script to check commit metadata for missing YAML blocks or dependencies. # -# Usage: check_commit_metadata [--dry-run] -# # Arguments: # # pr_number Pull request number. diff --git a/.github/workflows/scripts/check_contributing_guidelines_acceptance b/.github/workflows/scripts/check_contributing_guidelines_acceptance/run similarity index 97% rename from .github/workflows/scripts/check_contributing_guidelines_acceptance rename to .github/workflows/scripts/check_contributing_guidelines_acceptance/run index de39a9a2e97d..a38a812f8698 100755 --- a/.github/workflows/scripts/check_contributing_guidelines_acceptance +++ b/.github/workflows/scripts/check_contributing_guidelines_acceptance/run @@ -18,11 +18,9 @@ # Script to check if a pull request contains the checked contributing guidelines acknowledgment checkbox. # -# Usage: check_contributing_guidelines PR_NUMBER -# # Arguments: # -# PR_NUMBER Pull request number. +# pr_number Pull request number. # # Environment variables: # diff --git a/.github/workflows/scripts/check_duplicate_prs b/.github/workflows/scripts/check_duplicate_prs/run similarity index 99% rename from .github/workflows/scripts/check_duplicate_prs rename to .github/workflows/scripts/check_duplicate_prs/run index 4ddc49730244..07c45303a604 100755 --- a/.github/workflows/scripts/check_duplicate_prs +++ b/.github/workflows/scripts/check_duplicate_prs/run @@ -18,8 +18,6 @@ # Script to identify potentially duplicate pull requests based on the issues they resolve. # -# Usage: check_duplicate_prs -# # Environment variables: # # GITHUB_TOKEN GitHub token for authentication. diff --git a/.github/workflows/scripts/check_tracking_issue_closure b/.github/workflows/scripts/check_tracking_issue_closure/run similarity index 99% rename from .github/workflows/scripts/check_tracking_issue_closure rename to .github/workflows/scripts/check_tracking_issue_closure/run index 57b576f61b02..2f88d8ca0ffb 100755 --- a/.github/workflows/scripts/check_tracking_issue_closure +++ b/.github/workflows/scripts/check_tracking_issue_closure/run @@ -18,8 +18,6 @@ # Script to check PRs for auto-closing language referencing tracking issues. # -# Usage: check_tracking_issue_closure -# # Arguments: # # days Number of days to look back for PRs. diff --git a/.github/workflows/scripts/create_sub_issue b/.github/workflows/scripts/common/create_sub_issue similarity index 100% rename from .github/workflows/scripts/create_sub_issue rename to .github/workflows/scripts/common/create_sub_issue diff --git a/.github/workflows/scripts/lint_javascript_files b/.github/workflows/scripts/common/lint_javascript_files similarity index 100% rename from .github/workflows/scripts/lint_javascript_files rename to .github/workflows/scripts/common/lint_javascript_files diff --git a/.github/workflows/scripts/lint_javascript_files_error_log b/.github/workflows/scripts/common/lint_javascript_files_error_log similarity index 100% rename from .github/workflows/scripts/lint_javascript_files_error_log rename to .github/workflows/scripts/common/lint_javascript_files_error_log diff --git a/.github/workflows/scripts/lint_package_json_files b/.github/workflows/scripts/common/lint_package_json_files similarity index 100% rename from .github/workflows/scripts/lint_package_json_files rename to .github/workflows/scripts/common/lint_package_json_files diff --git a/.github/workflows/scripts/remove_sub_issues b/.github/workflows/scripts/common/remove_sub_issues similarity index 100% rename from .github/workflows/scripts/remove_sub_issues rename to .github/workflows/scripts/common/remove_sub_issues diff --git a/.github/workflows/scripts/task_runner b/.github/workflows/scripts/common/task_runner similarity index 100% rename from .github/workflows/scripts/task_runner rename to .github/workflows/scripts/common/task_runner diff --git a/.github/workflows/scripts/test_install b/.github/workflows/scripts/common/test_install similarity index 100% rename from .github/workflows/scripts/test_install rename to .github/workflows/scripts/common/test_install diff --git a/.github/workflows/scripts/create_address_commit_comments_issues b/.github/workflows/scripts/create_address_commit_comments_issues/run similarity index 99% rename from .github/workflows/scripts/create_address_commit_comments_issues rename to .github/workflows/scripts/create_address_commit_comments_issues/run index 762c4fe3d09b..31801573ac50 100755 --- a/.github/workflows/scripts/create_address_commit_comments_issues +++ b/.github/workflows/scripts/create_address_commit_comments_issues/run @@ -18,8 +18,6 @@ # Script to create issues for commit comments tagging @stdlib-bot. # -# Usage: create_issues_address_commit_comments -# # Arguments: # # days Number of days to look back for commits. diff --git a/.github/workflows/scripts/deprecate_packages b/.github/workflows/scripts/deprecate_packages/run similarity index 99% rename from .github/workflows/scripts/deprecate_packages rename to .github/workflows/scripts/deprecate_packages/run index 550e0c357e64..3b2762d6cc64 100644 --- a/.github/workflows/scripts/deprecate_packages +++ b/.github/workflows/scripts/deprecate_packages/run @@ -18,8 +18,6 @@ # Script to deprecate packages on npm and GitHub. # -# Usage: deprecate_packages pkg1 [pkg2 pkg3 ...] -# # Arguments: # # pkg1 Package name. diff --git a/.github/workflows/scripts/first_time_greeting b/.github/workflows/scripts/first_time_greeting/run similarity index 99% rename from .github/workflows/scripts/first_time_greeting rename to .github/workflows/scripts/first_time_greeting/run index 0457ea63ade3..f90473f2bfdc 100755 --- a/.github/workflows/scripts/first_time_greeting +++ b/.github/workflows/scripts/first_time_greeting/run @@ -18,8 +18,6 @@ # Script to greet first-time contributors. # -# Usage: first_time_greeting -# # Arguments: # # issue_number Issue or pull request number. diff --git a/.github/workflows/scripts/generate_pr_commit_message b/.github/workflows/scripts/generate_pr_commit_message/run similarity index 99% rename from .github/workflows/scripts/generate_pr_commit_message rename to .github/workflows/scripts/generate_pr_commit_message/run index 641cda08ea09..941aa899cae9 100755 --- a/.github/workflows/scripts/generate_pr_commit_message +++ b/.github/workflows/scripts/generate_pr_commit_message/run @@ -19,11 +19,9 @@ # Script to generate a commit message for a pull request. # -# Usage: generate_pr_commit_message PR_NUMBER -# # Arguments: # -# PR_NUMBER Pull request number. +# pr_number Pull request number. # # Environment variables: # diff --git a/.github/workflows/scripts/references_good_first_issue b/.github/workflows/scripts/label_good_first_prs/references_good_first_issue similarity index 100% rename from .github/workflows/scripts/references_good_first_issue rename to .github/workflows/scripts/label_good_first_prs/references_good_first_issue diff --git a/.github/workflows/scripts/add_trailing_newlines b/.github/workflows/scripts/lint_autofix/add_trailing_newlines similarity index 100% rename from .github/workflows/scripts/add_trailing_newlines rename to .github/workflows/scripts/lint_autofix/add_trailing_newlines diff --git a/.github/workflows/scripts/remove_related_packages b/.github/workflows/scripts/lint_autofix/remove_related_packages similarity index 100% rename from .github/workflows/scripts/remove_related_packages rename to .github/workflows/scripts/lint_autofix/remove_related_packages diff --git a/.github/workflows/scripts/create_broken_link_issues b/.github/workflows/scripts/markdown_links/create_broken_link_issues similarity index 100% rename from .github/workflows/scripts/create_broken_link_issues rename to .github/workflows/scripts/markdown_links/create_broken_link_issues diff --git a/.github/workflows/scripts/merge_pr b/.github/workflows/scripts/merge_ready_prs/merge_pr similarity index 98% rename from .github/workflows/scripts/merge_pr rename to .github/workflows/scripts/merge_ready_prs/merge_pr index ca64ebe34726..a546b99fb76e 100755 --- a/.github/workflows/scripts/merge_pr +++ b/.github/workflows/scripts/merge_ready_prs/merge_pr @@ -19,11 +19,11 @@ # Script to merge a pull request. # -# Usage: merge_pr PR_NUMBER +# Usage: merge_pr pr_number # # Arguments: # -# PR_NUMBER Pull request number. +# pr_number Pull request number. # # Environment variables: # diff --git a/.github/workflows/scripts/merge_ready_prs b/.github/workflows/scripts/merge_ready_prs/merge_ready_prs similarity index 100% rename from .github/workflows/scripts/merge_ready_prs rename to .github/workflows/scripts/merge_ready_prs/merge_ready_prs diff --git a/.github/workflows/scripts/package_commands_comment b/.github/workflows/scripts/pr_commands_comment/package_commands_comment similarity index 100% rename from .github/workflows/scripts/package_commands_comment rename to .github/workflows/scripts/pr_commands_comment/package_commands_comment diff --git a/.github/workflows/scripts/run_affected_benchmarks b/.github/workflows/scripts/run_affected_benchmarks/run similarity index 98% rename from .github/workflows/scripts/run_affected_benchmarks rename to .github/workflows/scripts/run_affected_benchmarks/run index 6bc52a05f488..b233ff4d28b1 100755 --- a/.github/workflows/scripts/run_affected_benchmarks +++ b/.github/workflows/scripts/run_affected_benchmarks/run @@ -18,8 +18,6 @@ # Script to run affected benchmarks for a given list of changed paths. # -# Usage: run_affected_benchmarks path1 [path2 path3 ...] -# # Arguments: # # path1 File name or directory path. diff --git a/.github/workflows/scripts/run_affected_tests b/.github/workflows/scripts/run_affected_tests/run similarity index 98% rename from .github/workflows/scripts/run_affected_tests rename to .github/workflows/scripts/run_affected_tests/run index d2d333c4cbd1..29febccd88e9 100755 --- a/.github/workflows/scripts/run_affected_tests +++ b/.github/workflows/scripts/run_affected_tests/run @@ -18,8 +18,6 @@ # Script to run affected tests for a given list of changed files. # -# Usage: run_affected_tests file1 [file2 file3 ...] -# # Arguments: # # file1 File name. diff --git a/.github/workflows/scripts/run_tests_coverage b/.github/workflows/scripts/run_tests_coverage/run similarity index 99% rename from .github/workflows/scripts/run_tests_coverage rename to .github/workflows/scripts/run_tests_coverage/run index 7b725cf24e5b..a86cce271eb0 100755 --- a/.github/workflows/scripts/run_tests_coverage +++ b/.github/workflows/scripts/run_tests_coverage/run @@ -18,8 +18,6 @@ # Script to calculate package test coverage for a given list of changed files. # -# Usage: run_tests_coverage file1 [file2 file3 ...] -# # Arguments: # # file1 File name. diff --git a/.github/workflows/scripts/rate_limit_contributions b/.github/workflows/scripts/too_many_good_first_prs/rate_limit_contributions similarity index 100% rename from .github/workflows/scripts/rate_limit_contributions rename to .github/workflows/scripts/too_many_good_first_prs/rate_limit_contributions diff --git a/.github/workflows/scripts/track_fixmes b/.github/workflows/scripts/track_todos/track_fixmes similarity index 100% rename from .github/workflows/scripts/track_fixmes rename to .github/workflows/scripts/track_todos/track_fixmes diff --git a/.github/workflows/scripts/track_todos b/.github/workflows/scripts/track_todos/track_todos similarity index 100% rename from .github/workflows/scripts/track_todos rename to .github/workflows/scripts/track_todos/track_todos diff --git a/.github/workflows/scripts/update_copyright_years b/.github/workflows/scripts/update_pr_copyright_years/run similarity index 100% rename from .github/workflows/scripts/update_copyright_years rename to .github/workflows/scripts/update_pr_copyright_years/run diff --git a/.github/workflows/too_many_good_first_prs.yml b/.github/workflows/too_many_good_first_prs.yml index 05b43a6a54cc..42570609dd94 100644 --- a/.github/workflows/too_many_good_first_prs.yml +++ b/.github/workflows/too_many_good_first_prs.yml @@ -66,4 +66,4 @@ jobs: PR_NUMBER: ${{ github.event.pull_request.number }} GITHUB_TOKEN: ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }} run: | - . "$GITHUB_WORKSPACE/.github/workflows/scripts/rate_limit_contributions" $PR_NUMBER + . "$GITHUB_WORKSPACE/.github/workflows/scripts/too_many_good_first_prs/rate_limit_contributions" $PR_NUMBER diff --git a/.github/workflows/track_todos.yml b/.github/workflows/track_todos.yml index 24a8e5044eb0..eb37db6aa71f 100644 --- a/.github/workflows/track_todos.yml +++ b/.github/workflows/track_todos.yml @@ -68,13 +68,13 @@ jobs: # Create content of tracking issue for TODO comments: - name: 'Create content of tracking issue for TODO comments' run: | - . "$GITHUB_WORKSPACE/.github/workflows/scripts/track_todos" > tracking_issue_todos.md + . "$GITHUB_WORKSPACE/.github/workflows/scripts/track_todos/track_todos" > tracking_issue_todos.md cat tracking_issue_todos.md >> $GITHUB_STEP_SUMMARY # Create content of tracking issue for FIXME comments: - name: 'Create content of tracking issue for FIXME comments' run: | - . "$GITHUB_WORKSPACE/.github/workflows/scripts/track_fixmes" > tracking_issue_fixmes.md + . "$GITHUB_WORKSPACE/.github/workflows/scripts/track_todos/track_fixmes" > tracking_issue_fixmes.md cat tracking_issue_fixmes.md >> $GITHUB_STEP_SUMMARY # Create or update issue for TODO comments: diff --git a/.github/workflows/update_pr_copyright_years.yml b/.github/workflows/update_pr_copyright_years.yml index dca253c07368..460614e325f8 100644 --- a/.github/workflows/update_pr_copyright_years.yml +++ b/.github/workflows/update_pr_copyright_years.yml @@ -118,7 +118,7 @@ jobs: id: update-years run: | files="${{ steps.added-files.outputs.files }}" - . "$GITHUB_WORKSPACE/.github/workflows/scripts/update_copyright_years" "$files" + . "$GITHUB_WORKSPACE/.github/workflows/scripts/update_pr_copyright_years/run" "$files" # Disable Git hooks: - name: 'Disable Git hooks' diff --git a/.github/workflows/windows_test_npm_install.yml b/.github/workflows/windows_test_npm_install.yml index f9a55f1b6c42..ad3504701f07 100644 --- a/.github/workflows/windows_test_npm_install.yml +++ b/.github/workflows/windows_test_npm_install.yml @@ -273,7 +273,7 @@ jobs: TEST_NPM_INSTALL_GITHUB_URL: 'https://github.com/stdlib-js/stdlib' run: | . "${{ env.NVS_HOME }}/nvs.sh" && nvs use ${{ matrix.NODE_VERSION }} - . "$GITHUB_WORKSPACE/.github/workflows/scripts/task_runner" ${{ matrix.BUILD_TASK }} "${{ env.LOG_FILE_BUILD_TASK }}" + . "$GITHUB_WORKSPACE/.github/workflows/scripts/common/task_runner" ${{ matrix.BUILD_TASK }} "${{ env.LOG_FILE_BUILD_TASK }}" timeout-minutes: 360 # View the log file if the previous step fails: