Skip to content

Commit d1e73f3

Browse files
committed
build: move scripts to sub-folders for respective workflows
1 parent 50367fe commit d1e73f3

59 files changed

Lines changed: 45 additions & 45 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/check_commit_metadata.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,4 @@ jobs:
7272
COMMIT_METADATA: ${{ steps.extract-metadata.outputs.metadata }}
7373
GITHUB_TOKEN: ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }}
7474
run: |
75-
. "$GITHUB_WORKSPACE/.github/workflows/scripts/check_commit_metadata" $PR_NUMBER $COMMIT_METADATA
75+
. "$GITHUB_WORKSPACE/.github/workflows/scripts/check_commit_metadata/check_commit_metadata" $PR_NUMBER $COMMIT_METADATA

.github/workflows/check_duplicate_prs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,5 +76,5 @@ jobs:
7676
GITHUB_TOKEN: ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }}
7777
DEBUG: ${{ inputs.debug || 'false' }}
7878
run: |
79-
. "$GITHUB_WORKSPACE/.github/workflows/scripts/check_duplicate_prs"
79+
. "$GITHUB_WORKSPACE/.github/workflows/scripts/check_duplicate_prs/check_duplicate_prs"
8080
timeout-minutes: 15

.github/workflows/check_licenses.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ jobs:
114114
# Run the build task:
115115
- name: 'Run build task'
116116
run: |
117-
. "$GITHUB_WORKSPACE/.github/workflows/scripts/task_runner" "${{ env.BUILD_TASK }}" "${{ env.LOG_FILE_BUILD_TASK }}"
117+
. "$GITHUB_WORKSPACE/.github/workflows/scripts/common/task_runner" "${{ env.BUILD_TASK }}" "${{ env.LOG_FILE_BUILD_TASK }}"
118118
timeout-minutes: 360
119119

120120
# View the log file if the previous step fails:

.github/workflows/check_tracking_issue_closure.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
# Run the script to check PRs for tracking issue closure:
6868
- name: 'Check PRs for tracking issue closure'
6969
run: |
70-
. "$GITHUB_WORKSPACE/.github/workflows/scripts/check_tracking_issue_closure" 1
70+
. "$GITHUB_WORKSPACE/.github/workflows/scripts/check_tracking_issue_closure/check_tracking_issue_closure" 1
7171
env:
7272
GITHUB_TOKEN: ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }}
7373
DEBUG: ${{ inputs.debug || 'false' }}

.github/workflows/create_address_commit_comment_issues.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,5 @@ jobs:
6666
env:
6767
GITHUB_TOKEN: ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }}
6868
run: |
69-
. "$GITHUB_WORKSPACE/.github/workflows/scripts/create_address_commit_comments_issues" 14
69+
. "$GITHUB_WORKSPACE/.github/workflows/scripts/create_address_commit_comments_issues/create_address_commit_comments_issues" 14
7070
timeout-minutes: 15

.github/workflows/generate_pr_commit_message.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
id: commit_message
6868
shell: bash {0} # Omit -e to avoid triggering a failure if the script returns a non-zero exit code
6969
run: |
70-
COMMIT_MESSAGE=$($GITHUB_WORKSPACE/.github/workflows/scripts/generate_pr_commit_message $PR_NUMBER)
70+
COMMIT_MESSAGE=$($GITHUB_WORKSPACE/.github/workflows/scripts/generate_pr_commit_message/generate_pr_commit_message $PR_NUMBER)
7171
EXIT_CODE=$?
7272
7373
echo "commit_message<<EOF" >> $GITHUB_OUTPUT

.github/workflows/label_good_first_prs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
env:
6969
PR_NUMBER: ${{ github.event.pull_request.number }}
7070
run: |
71-
bool=$(. "$GITHUB_WORKSPACE/.github/workflows/scripts/references_good_first_issue" $PR_NUMBER)
71+
bool=$(. "$GITHUB_WORKSPACE/.github/workflows/scripts/label_good_first_prs/references_good_first_issue" $PR_NUMBER)
7272
echo "good-first-pr=$bool" >> $GITHUB_OUTPUT
7373
7474
# Add "Good First PR" label if PR references a "Good First Issue"

.github/workflows/lint_autofix.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,20 +138,20 @@ jobs:
138138
id: fix-lint-errors
139139
run: |
140140
files="${{ steps.changed-files.outputs.files }}"
141-
FIX=1 . "$GITHUB_WORKSPACE/.github/workflows/scripts/lint_javascript_files" "$files" || true
141+
FIX=1 . "$GITHUB_WORKSPACE/.github/workflows/scripts/common/lint_javascript_files" "$files" || true
142142
143143
# Add missing trailing newlines:
144144
- name: 'Add missing trailing newlines'
145145
id: add-trailing-newlines
146146
run: |
147147
files="${{ steps.changed-files.outputs.files }}"
148-
. "$GITHUB_WORKSPACE/.github/workflows/scripts/add_trailing_newlines" "$files"
148+
. "$GITHUB_WORKSPACE/.github/workflows/scripts/lint_autofix/add_trailing_newlines" "$files"
149149
150150
# Remove related packages from README.md files:
151151
- name: 'Remove related packages from README.md files'
152152
run: |
153153
files="${{ steps.changed-files.outputs.files }}"
154-
. "$GITHUB_WORKSPACE/.github/workflows/scripts/remove_related_packages" "$files"
154+
. "$GITHUB_WORKSPACE/.github/workflows/scripts/lint_autofix/remove_related_packages" "$files"
155155
156156
# Disable Git hooks:
157157
- name: 'Disable Git hooks'

.github/workflows/lint_changed_files.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ jobs:
169169
- name: 'Lint package.json files'
170170
if: success() || failure()
171171
run: |
172-
. "$GITHUB_WORKSPACE/.github/workflows/scripts/lint_package_json_files" "${{ steps.changed-files.outputs.files }}"
172+
. "$GITHUB_WORKSPACE/.github/workflows/scripts/common/lint_package_json_files" "${{ steps.changed-files.outputs.files }}"
173173
174174
# Lint REPL help files...
175175
- name: 'Lint REPL help files'

.github/workflows/lint_random_files.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ jobs:
238238
- Reference this issue in the "Related Issues" section of the PR body as "resolves #<ISSUE_NUMBER>".
239239
EOF
240240
241-
. "$GITHUB_WORKSPACE/.github/workflows/scripts/create_sub_issue" \
241+
. "$GITHUB_WORKSPACE/.github/workflows/scripts/common/create_sub_issue" \
242242
'Fix EditorConfig lint errors' \
243243
"$BODY_FILE" \
244244
"5156" \
@@ -312,7 +312,7 @@ jobs:
312312
313313
# Run the lint script:
314314
if [ -n "${files}" ]; then
315-
"$GITHUB_WORKSPACE/.github/workflows/scripts/lint_javascript_files_error_log" ${files}
315+
"$GITHUB_WORKSPACE/.github/workflows/scripts/common/lint_javascript_files_error_log" ${files}
316316
else
317317
echo "No JavaScript files to lint."
318318
fi
@@ -347,7 +347,7 @@ jobs:
347347
- Reference this issue in the "Related Issues" section of the PR body as "resolves #<ISSUE_NUMBER>".
348348
EOF
349349
350-
. "$GITHUB_WORKSPACE/.github/workflows/scripts/create_sub_issue" \
350+
. "$GITHUB_WORKSPACE/.github/workflows/scripts/common/create_sub_issue" \
351351
'Fix JavaScript lint errors' \
352352
"$BODY_FILE" \
353353
"5377" \
@@ -493,7 +493,7 @@ jobs:
493493
- Reference this issue in the "Related Issues" section of the PR body as "resolves #<ISSUE_NUMBER>".
494494
EOF
495495
496-
. "$GITHUB_WORKSPACE/.github/workflows/scripts/create_sub_issue" \
496+
. "$GITHUB_WORKSPACE/.github/workflows/scripts/common/create_sub_issue" \
497497
'Fix C lint errors' \
498498
"$BODY_FILE" \
499499
"3235" # Number of C lint error tracking issue
@@ -546,7 +546,7 @@ jobs:
546546
- Reference this issue in the "Related Issues" section of the PR body as "resolves #<ISSUE_NUMBER>".
547547
EOF
548548
549-
. "$GITHUB_WORKSPACE/.github/workflows/scripts/create_sub_issue" \
549+
. "$GITHUB_WORKSPACE/.github/workflows/scripts/common/create_sub_issue" \
550550
'Fix TypeScript declarations lint errors' \
551551
"$BODY_FILE" \
552552
"9110" \

0 commit comments

Comments
 (0)