CI: SHA hash pin dependencies in Actions (#5358) * Add Renovate configuration file * Delete .github/workflows/update-i18n.yaml * chore(deps): pin dependencies (#1) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update codelytv/pr-size-labeler action to v1.10.3 (#2) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * Delete renovate.json --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

b3f1114a68a3a7d9c9509f4718fd525f28058b71

Cohee <18619528+Cohee1207@users.noreply.github.com>

Signed
11 files changed, +60 -92Ignore whitespace
.github/workflows/docker-publish.yml+7 -7
@@ -35,13 +35,13 @@ jobs:
3535 # It's currently not possible to have `branches` under the `schedule` trigger
3636 - name: Checkout the release branch (on release)
3737 if: ${{ github.event_name == 'release' || github.event_name == 'push' }}
3838 uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
3939 with:
4040 ref: "release"
4141
4242 - name: Checkout the staging branch
4343 if: ${{ github.event_name == 'schedule' }}
4444 uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
4545 with:
4646 ref: "staging"
4747
@@ -55,13 +55,13 @@ jobs:
5555
5656 # Setting up QEMU for multi-arch image build
5757 - name: Set up QEMU
5858 uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3
5959
6060 - name: Set up Docker Buildx
6161 uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
6262
6363 - name: Extract metadata (tags, labels) for the image
6464 uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5.5.1
6565 id: metadata
6666 with:
6767 images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
@@ -74,7 +74,7 @@ jobs:
7474
7575 # Login into package repository as the person who created the release
7676 - name: Log in to the Container registry
7777 uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
7878 with:
7979 registry: ${{ env.REGISTRY }}
8080 username: ${{ github.actor }}
@@ -84,7 +84,7 @@ jobs:
8484 # Tag it with branch name
8585 # Assumes branch name is the version number
8686 - name: Build and push
8787 uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
8888 with:
8989 context: .
9090 platforms: linux/amd64,linux/arm64
.github/workflows/issues-auto-manager.yml+13 -13
@@ -22,7 +22,7 @@ jobs:
2222 id: app
2323 # Create a GitHub App token
2424 # https://github.com/marketplace/actions/create-github-app-token
2525 uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
2626 with:
2727 app-id: ${{ vars.ST_BOT_APP_ID }}
2828 private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
@@ -31,7 +31,7 @@ jobs:
3131 - name: Checkout Repository
3232 # Checkout
3333 # https://github.com/marketplace/actions/checkout
3434 uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3535
3636 - name: Auto-Label Issues (Based on Issue Content)
3737 # only auto label based on issue content once, on open (to prevent re-labeling removed labels)
@@ -39,7 +39,7 @@ jobs:
3939
4040 # Issue Labeler
4141 # https://github.com/marketplace/actions/regex-issue-labeler
4242 uses: github/issue-labeler@c1b0f9f52a63158c4adc09425e858e87b32e9685 # v3.4
4343 with:
4444 configuration-path: .github/issues-auto-labels.yml
4545 enable-versioned-regex: 0
@@ -56,7 +56,7 @@ jobs:
5656 id: app
5757 # Create a GitHub App token
5858 # https://github.com/marketplace/actions/create-github-app-token
5959 uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
6060 with:
6161 app-id: ${{ vars.ST_BOT_APP_ID }}
6262 private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
@@ -66,7 +66,7 @@ jobs:
6666 if: contains(fromJSON('["πŸ‘©β€πŸ’» Good First Issue", "πŸ™ Help Wanted", "πŸͺ² Confirmed", "⚠️ High Priority", "❕ Medium Priority", "πŸ’€ Low Priority"]'), github.event.label.name)
6767 # πŸ€– Issues Helper
6868 # https://github.com/marketplace/actions/issues-helper
6969 uses: actions-cool/issues-helper@a610082f8ac0cf03e357eb8dd0d5e2ba075e017e # v3.6.0
7070 with:
7171 actions: 'add-labels'
7272 token: ${{ steps.app.outputs.token }}
@@ -76,7 +76,7 @@ jobs:
7676 if: contains(fromJSON('["βœ… Done", "βœ… Done (staging)", "⚰️ Stale", "❌ wontfix"]'), github.event.label.name)
7777 # πŸ€– Issues Helper
7878 # https://github.com/marketplace/actions/issues-helper
7979 uses: actions-cool/issues-helper@a610082f8ac0cf03e357eb8dd0d5e2ba075e017e # v3.6.0
8080 with:
8181 actions: 'remove-labels'
8282 token: ${{ steps.app.outputs.token }}
@@ -86,7 +86,7 @@ jobs:
8686 if: contains(fromJSON('["❌ wontfix","πŸ‘ Approved","πŸ‘©β€πŸ’» Good First Issue"]'), github.event.label.name)
8787 # πŸ€– Issues Helper
8888 # https://github.com/marketplace/actions/issues-helper
8989 uses: actions-cool/issues-helper@a610082f8ac0cf03e357eb8dd0d5e2ba075e017e # v3.6.0
9090 with:
9191 actions: 'remove-labels'
9292 token: ${{ steps.app.outputs.token }}
@@ -96,7 +96,7 @@ jobs:
9696 if: github.event.label.name == 'πŸͺ² Confirmed'
9797 # πŸ€– Issues Helper
9898 # https://github.com/marketplace/actions/issues-helper
9999 uses: actions-cool/issues-helper@a610082f8ac0cf03e357eb8dd0d5e2ba075e017e # v3.6.0
100100 with:
101101 actions: 'remove-labels'
102102 token: ${{ steps.app.outputs.token }}
@@ -114,7 +114,7 @@ jobs:
114114 id: app
115115 # Create a GitHub App token
116116 # https://github.com/marketplace/actions/create-github-app-token
117117 uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
118118 with:
119119 app-id: ${{ vars.ST_BOT_APP_ID }}
120120 private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
@@ -123,7 +123,7 @@ jobs:
123123 - name: Remove Stale Label
124124 # πŸ€– Issues Helper
125125 # https://github.com/marketplace/actions/issues-helper
126126 uses: actions-cool/issues-helper@a610082f8ac0cf03e357eb8dd0d5e2ba075e017e # v3.6.0
127127 with:
128128 actions: 'remove-labels'
129129 token: ${{ steps.app.outputs.token }}
@@ -141,7 +141,7 @@ jobs:
141141 id: app
142142 # Create a GitHub App token
143143 # https://github.com/marketplace/actions/create-github-app-token
144144 uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
145145 with:
146146 app-id: ${{ vars.ST_BOT_APP_ID }}
147147 private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
@@ -150,12 +150,12 @@ jobs:
150150 - name: Checkout Repository
151151 # Checkout
152152 # https://github.com/marketplace/actions/checkout
153153 uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
154154
155155 - name: Post Issue Comments Based on Labels
156156 # Label Commenter
157157 # https://github.com/marketplace/actions/label-commenter
158158 uses: peaceiris/actions-label-commenter@f0dbbef043eb1b150b566db36b0bdc8b7f505579 # v1.10.0
159159 with:
160160 config_file: .github/issues-auto-comments.yml
161161 github_token: ${{ steps.app.outputs.token }}
.github/workflows/issues-updates-on-merge.yml+2 -2
@@ -22,7 +22,7 @@ jobs:
2222 id: app
2323 # Create a GitHub App token
2424 # https://github.com/marketplace/actions/create-github-app-token
2525 uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
2626 with:
2727 app-id: ${{ vars.ST_BOT_APP_ID }}
2828 private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
@@ -31,7 +31,7 @@ jobs:
3131 - name: Checkout Repository
3232 # Checkout
3333 # https://github.com/marketplace/actions/checkout
3434 uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3535
3636 - name: Extract Linked Issues from Commit Message
3737 id: extract_issues
.github/workflows/job-close-stale.yml+6 -6
@@ -22,7 +22,7 @@ jobs:
2222 id: app
2323 # Create a GitHub App token
2424 # https://github.com/marketplace/actions/create-github-app-token
2525 uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
2626 with:
2727 app-id: ${{ vars.ST_BOT_APP_ID }}
2828 private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
@@ -31,7 +31,7 @@ jobs:
3131 - name: Mark Issues/PRs without Activity
3232 # Close Stale Issues and PRs
3333 # https://github.com/marketplace/actions/close-stale-issues
3434 uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0
3535 with:
3636 repo-token: ${{ steps.app.outputs.token }}
3737 days-before-stale: 183
@@ -67,7 +67,7 @@ jobs:
6767 id: app
6868 # Create a GitHub App token
6969 # https://github.com/marketplace/actions/create-github-app-token
7070 uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
7171 with:
7272 app-id: ${{ vars.ST_BOT_APP_ID }}
7373 private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
@@ -76,7 +76,7 @@ jobs:
7676 - name: Mark Issues/PRs Awaiting User Response
7777 # Close Stale Issues and PRs
7878 # https://github.com/marketplace/actions/close-stale-issues
7979 uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0
8080 with:
8181 repo-token: ${{ steps.app.outputs.token }}
8282 days-before-stale: 7
@@ -105,7 +105,7 @@ jobs:
105105 id: app
106106 # Create a GitHub App token
107107 # https://github.com/marketplace/actions/create-github-app-token
108108 uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
109109 with:
110110 app-id: ${{ vars.ST_BOT_APP_ID }}
111111 private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
@@ -114,7 +114,7 @@ jobs:
114114 - name: Mark Issues with Alternative Exists
115115 # Close Stale Issues and PRs
116116 # https://github.com/marketplace/actions/close-stale-issues
117117 uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0
118118 with:
119119 repo-token: ${{ steps.app.outputs.token }}
120120 days-before-stale: 7
.github/workflows/npm-publish.yml+4 -4
@@ -15,8 +15,8 @@ jobs:
1515 build:
1616 runs-on: ubuntu-latest
1717 steps:
1818 - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
1919 - uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3
2020 with:
2121 node-version: 24
2222 - run: npm ci
@@ -25,8 +25,8 @@ jobs:
2525 needs: build
2626 runs-on: ubuntu-latest
2727 steps:
2828 - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
2929 - uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3
3030 with:
3131 node-version: 24
3232 registry-url: https://registry.npmjs.org/
.github/workflows/on-close-handler.yml+2 -2
@@ -22,7 +22,7 @@ jobs:
2222 id: app
2323 # Create a GitHub App token
2424 # https://github.com/marketplace/actions/create-github-app-token
2525 uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
2626 with:
2727 app-id: ${{ vars.ST_BOT_APP_ID }}
2828 private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
@@ -31,7 +31,7 @@ jobs:
3131 - name: Remove Pending Labels on Close
3232 # πŸ€– Issues Helper
3333 # https://github.com/marketplace/actions/issues-helper
3434 uses: actions-cool/issues-helper@a610082f8ac0cf03e357eb8dd0d5e2ba075e017e # v3.6.0
3535 with:
3636 actions: remove-labels
3737 token: ${{ steps.app.outputs.token }}
.github/workflows/on-open-handler.yml+2 -2
@@ -22,7 +22,7 @@ jobs:
2222 id: app
2323 # Create a GitHub App token
2424 # https://github.com/marketplace/actions/create-github-app-token
2525 uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
2626 with:
2727 app-id: ${{ vars.ST_BOT_APP_ID }}
2828 private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
@@ -31,7 +31,7 @@ jobs:
3131 - name: Label if Author is a Repo Maintainer
3232 # πŸ€– Issues Helper
3333 # https://github.com/marketplace/actions/issues-helper
3434 uses: actions-cool/issues-helper@a610082f8ac0cf03e357eb8dd0d5e2ba075e017e # v3.6.0
3535 with:
3636 actions: 'add-labels'
3737 token: ${{ steps.app.outputs.token }}
.github/workflows/pr-auto-manager.yml+17 -17
@@ -31,7 +31,7 @@ jobs:
3131 id: app
3232 # Create a GitHub App token
3333 # https://github.com/marketplace/actions/create-github-app-token
3434 uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
3535 with:
3636 app-id: ${{ vars.ST_BOT_APP_ID }}
3737 private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
@@ -40,7 +40,7 @@ jobs:
4040 - name: Label PR Size
4141 # Pull Request Size Labeler
4242 # https://github.com/marketplace/actions/pull-request-size-labeler
4343 uses: codelytv/pr-size-labeler@4ec67706cd878fbc1c8db0a5dcd28b6bb412e85a # v1.10.23
4444 with:
4545 GITHUB_TOKEN: ${{ steps.app.outputs.token }}
4646 xs_label: '🟩 ⬀○○○○'
@@ -68,7 +68,7 @@ jobs:
6868 id: app
6969 # Create a GitHub App token
7070 # https://github.com/marketplace/actions/create-github-app-token
7171 uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
7272 with:
7373 app-id: ${{ vars.ST_BOT_APP_ID }}
7474 private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
@@ -77,12 +77,12 @@ jobs:
7777 - name: Checkout Repository
7878 # Checkout
7979 # https://github.com/marketplace/actions/checkout
8080 uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
8181
8282 - name: Apply Labels Based on Branch Name and Target Branch
8383 # Pull Request Labeler
8484 # https://github.com/marketplace/actions/labeler
8585 uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0
8686 with:
8787 configuration-path: .github/pr-auto-labels-by-branch.yml
8888 repo-token: ${{ steps.app.outputs.token }}
@@ -99,7 +99,7 @@ jobs:
9999 id: app
100100 # Create a GitHub App token
101101 # https://github.com/marketplace/actions/create-github-app-token
102102 uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
103103 with:
104104 app-id: ${{ vars.ST_BOT_APP_ID }}
105105 private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
@@ -108,12 +108,12 @@ jobs:
108108 - name: Checkout Repository
109109 # Checkout
110110 # https://github.com/marketplace/actions/checkout
111111 uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
112112
113113 - name: Apply Labels Based on Changed Files
114114 # Pull Request Labeler
115115 # https://github.com/marketplace/actions/labeler
116116 uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0
117117 env:
118118 GITHUB_TOKEN: ${{ steps.app.outputs.token }} # labeler action needs some handholding
119119 with:
@@ -133,7 +133,7 @@ jobs:
133133 id: app
134134 # Create a GitHub App token
135135 # https://github.com/marketplace/actions/create-github-app-token
136136 uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
137137 with:
138138 app-id: ${{ vars.ST_BOT_APP_ID }}
139139 private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
@@ -142,7 +142,7 @@ jobs:
142142 - name: Add Vibe Coded Label
143143 # πŸ€– Issues Helper
144144 # https://github.com/marketplace/actions/issues-helper
145145 uses: actions-cool/issues-helper@a610082f8ac0cf03e357eb8dd0d5e2ba075e017e # v3.6.0
146146 with:
147147 actions: 'add-labels'
148148 token: ${{ steps.app.outputs.token }}
@@ -170,7 +170,7 @@ jobs:
170170 # This action runs on comments, which will not receive the env vars for this
171171 # Create a GitHub App token
172172 # https://github.com/marketplace/actions/create-github-app-token
173173 uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
174174 with:
175175 app-id: ${{ vars.ST_BOT_APP_ID }}
176176 private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
@@ -180,7 +180,7 @@ jobs:
180180 if: always()
181181 # πŸ€– Issues Helper
182182 # https://github.com/marketplace/actions/issues-helper
183183 uses: actions-cool/issues-helper@a610082f8ac0cf03e357eb8dd0d5e2ba075e017e # v3.6.0
184184 with:
185185 actions: 'remove-labels'
186186 token: ${{ steps.app.outputs.token || github.token }} # Use fallback to GITHUB_TOKEN if app token is not available
@@ -205,7 +205,7 @@ jobs:
205205 # GitHub Script
206206 # https://github.com/marketplace/actions/github-script
207207 id: label-check
208208 uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
209209 with:
210210 script: |
211211 const prLabels = context.payload.pull_request.labels.map(label => label.name);
@@ -249,7 +249,7 @@ jobs:
249249 id: app
250250 # Create a GitHub App token
251251 # https://github.com/marketplace/actions/create-github-app-token
252252 uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
253253 with:
254254 app-id: ${{ vars.ST_BOT_APP_ID }}
255255 private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
@@ -258,12 +258,12 @@ jobs:
258258 - name: Checkout Repository
259259 # Checkout
260260 # https://github.com/marketplace/actions/checkout
261261 uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
262262
263263 - name: Post PR Comments Based on Labels
264264 # Label Commenter for PRs
265265 # https://github.com/marketplace/actions/label-commenter
266266 uses: peaceiris/actions-label-commenter@f0dbbef043eb1b150b566db36b0bdc8b7f505579 # v1.10.0
267267 with:
268268 config_file: .github/pr-auto-comments.yml
269269 github_token: ${{ steps.app.outputs.token }}
@@ -289,7 +289,7 @@ jobs:
289289 id: app
290290 # Create a GitHub App token
291291 # https://github.com/marketplace/actions/create-github-app-token
292292 uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
293293 with:
294294 app-id: ${{ vars.ST_BOT_APP_ID }}
295295 private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
.github/workflows/pr-check-merge-conflicts.yaml+2 -2
@@ -22,7 +22,7 @@ jobs:
2222 id: app
2323 # Create a GitHub App token
2424 # https://github.com/marketplace/actions/create-github-app-token
2525 uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
2626 with:
2727 app-id: ${{ vars.ST_BOT_APP_ID }}
2828 private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
@@ -31,7 +31,7 @@ jobs:
3131 - name: Check Merge Conflicts
3232 # Label Conflicting Pull Requests
3333 # https://github.com/marketplace/actions/label-conflicting-pull-requests
3434 uses: eps1lon/actions-label-merge-conflict@1df065ebe6e3310545d4f4c4e862e43bdca146f0 # v3.0.3
3535 with:
3636 dirtyLabel: '🚫 Merge Conflicts'
3737 repoToken: ${{ steps.app.outputs.token }}
.github/workflows/pr-checks.yml+5 -5
@@ -24,7 +24,7 @@ jobs:
2424 - name: Checkout Repository
2525 # Checkout
2626 # https://github.com/marketplace/actions/checkout
2727 uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2828 with:
2929 ref: ${{ github.event.pull_request.head.sha }}
3030 repository: ${{ github.event.pull_request.head.repo.full_name }}
@@ -32,7 +32,7 @@ jobs:
3232 - name: Setup Node.js
3333 # Setup Node.js environment
3434 # https://github.com/marketplace/actions/setup-node-js-environment
3535 uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
3636 with:
3737 node-version: 20
3838
@@ -42,7 +42,7 @@ jobs:
4242 - name: Run ESLint
4343 # Action ESLint
4444 # https://github.com/marketplace/actions/action-eslint
4545 uses: sibiraj-s/action-eslint@bcf41bb9abce43cdbad51ab9b3da2eddaa17eab3 # v3.0.1
4646 with:
4747 token: ${{ secrets.GITHUB_TOKEN }} # ESLint can run with the original permissions
4848 eslint-args: '--ignore-path=.gitignore --quiet'
@@ -62,7 +62,7 @@ jobs:
6262 - name: Checkout Repository
6363 # Checkout
6464 # https://github.com/marketplace/actions/checkout
6565 uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
6666 with:
6767 ref: ${{ github.event.pull_request.head.sha }}
6868 repository: ${{ github.event.pull_request.head.repo.full_name }}
@@ -70,7 +70,7 @@ jobs:
7070 - name: Setup Node.js
7171 # Setup Node.js environment
7272 # https://github.com/marketplace/actions/setup-node-js-environment
7373 uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
7474 with:
7575 node-version: 20
7676
.github/workflows/update-i18n.yaml+0 -32
@@ -1,32 +0,0 @@
1-name: Update i18n data
2-
3-on: workflow_dispatch
4-
5-jobs:
6- build:
7- runs-on: ubuntu-latest
8- permissions: # Job-level permissions configuration starts here
9- contents: write # 'write' access to repository contents
10- steps:
11- - name: disable auto crlf
12- uses: steve02081504/disable-autocrlf@v1
13- - uses: actions/checkout@v4
14- with:
15- ref: ${{ github.head_ref }}
16- fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
17- - name: Create local changes
18- run: |
19- aria2c https://raw.githubusercontent.com/SillyTavern/SillyTavern-i18n/main/generate.py
20- aria2c https://raw.githubusercontent.com/SillyTavern/SillyTavern-i18n/main/requirements.txt
21- pip install -r ./requirements.txt
22- python ./generate.py "" --sort-keys
23- rm -f ./generate.py ./requirements.txt
24- - name: add all
25- run: git add -A
26- - name: push
27- uses: actions-go/push@master
28- with:
29- author-email: 41898282+github-actions[bot]@users.noreply.github.com
30- author-name: github-actions[bot]
31- commit-message: 'i18n changes'
32- remote: origin