Skip to content

Commit 3c2fc76

Browse files
authored
Ts links 4 - more adjustments to link scripts in workflows (#53184)
1 parent df94937 commit 3c2fc76

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/dont-delete-assets.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ on:
1717
- main
1818
paths:
1919
- 'assets/**'
20+
- '.github/workflows/dont-delete-assets.yml'
2021

2122
permissions:
2223
contents: read
@@ -37,7 +38,7 @@ jobs:
3738
id: comment
3839
env:
3940
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40-
run: src/assets/scripts/deleted-assets-pr-comment.js
41+
run: npm run deleted-assets-pr-comment
4142

4243
- name: Find possible previous comment
4344
if: ${{ steps.comment.outputs.markdown != '' }}

.github/workflows/validate-asset-images.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
pull_request:
1010
paths:
1111
- 'assets/**'
12+
- '.github/workflows/validate-asset-images.yml'
1213

1314
permissions:
1415
contents: read
@@ -24,4 +25,4 @@ jobs:
2425
- uses: ./.github/actions/node-npm-setup
2526

2627
- name: Validate all asset images
27-
run: tsx src/assets/scripts/validate-asset-images.ts
28+
run: npm run validate-asset-images

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"create-acr-token": "tsx src/workflows/acr-create-token.js",
3232
"debug": "cross-env NODE_ENV=development ENABLED_LANGUAGES=en nodemon --inspect src/frame/server.ts",
3333
"delete-orphan-translation-files": "tsx src/workflows/delete-orphan-translation-files.ts",
34+
"deleted-assets-pr-comment": "tsx src/assets/scripts/deleted-assets-pr-comment.ts",
3435
"deleted-features-pr-comment": "tsx src/data-directory/scripts/deleted-features-pr-comment.ts",
3536
"dev": "cross-env npm start",
3637
"find-orphaned-assets": "tsx src/assets/scripts/find-orphaned-assets.ts",

0 commit comments

Comments
 (0)