Merge branch 'release' into chore/release-1.17.0
| @@ -35,13 +35,13 @@ jobs: | ||
| 35 | 35 | # It's currently not possible to have `branches` under the `schedule` trigger |
| 36 | 36 | - name: Checkout the release branch (on release) |
| 37 | 37 | if: ${{ github.event_name == 'release' || github.event_name == 'push' }} |
| 38 | 38 | uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 |
| 39 | 39 | with: |
| 40 | 40 | ref: "release" |
| 41 | 41 | |
| 42 | 42 | - name: Checkout the staging branch |
| 43 | 43 | if: ${{ github.event_name == 'schedule' }} |
| 44 | 44 | uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 |
| 45 | 45 | with: |
| 46 | 46 | ref: "staging" |
| 47 | 47 | |
| @@ -55,13 +55,13 @@ jobs: | ||
| 55 | 55 | |
| 56 | 56 | # Setting up QEMU for multi-arch image build |
| 57 | 57 | - name: Set up QEMU |
| 58 | 58 | uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3 |
| 59 | 59 | |
| 60 | 60 | - name: Set up Docker Buildx |
| 61 | 61 | uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3 |
| 62 | 62 | |
| 63 | 63 | - name: Extract metadata (tags, labels) for the image |
| 64 | 64 | uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5.5.1 |
| 65 | 65 | id: metadata |
| 66 | 66 | with: |
| 67 | 67 | images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} |
| @@ -74,7 +74,7 @@ jobs: | ||
| 74 | 74 | |
| 75 | 75 | # Login into package repository as the person who created the release |
| 76 | 76 | - name: Log in to the Container registry |
| 77 | 77 | uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3 |
| 78 | 78 | with: |
| 79 | 79 | registry: ${{ env.REGISTRY }} |
| 80 | 80 | username: ${{ github.actor }} |
| @@ -84,7 +84,7 @@ jobs: | ||
| 84 | 84 | # Tag it with branch name |
| 85 | 85 | # Assumes branch name is the version number |
| 86 | 86 | - name: Build and push |
| 87 | 87 | uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0 |
| 88 | 88 | with: |
| 89 | 89 | context: . |
| 90 | 90 | platforms: linux/amd64,linux/arm64 |
| @@ -22,7 +22,7 @@ jobs: | ||
| 22 | 22 | id: app |
| 23 | 23 | # Create a GitHub App token |
| 24 | 24 | # https://github.com/marketplace/actions/create-github-app-token |
| 25 | 25 | uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2 |
| 26 | 26 | with: |
| 27 | 27 | app-id: ${{ vars.ST_BOT_APP_ID }} |
| 28 | 28 | private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }} |
| @@ -31,7 +31,7 @@ jobs: | ||
| 31 | 31 | - name: Checkout Repository |
| 32 | 32 | # Checkout |
| 33 | 33 | # https://github.com/marketplace/actions/checkout |
| 34 | 34 | uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
| 35 | 35 | |
| 36 | 36 | - name: Auto-Label Issues (Based on Issue Content) |
| 37 | 37 | # only auto label based on issue content once, on open (to prevent re-labeling removed labels) |
| @@ -39,7 +39,7 @@ jobs: | ||
| 39 | 39 | |
| 40 | 40 | # Issue Labeler |
| 41 | 41 | # https://github.com/marketplace/actions/regex-issue-labeler |
| 42 | 42 | uses: github/issue-labeler@c1b0f9f52a63158c4adc09425e858e87b32e9685 # v3.4 |
| 43 | 43 | with: |
| 44 | 44 | configuration-path: .github/issues-auto-labels.yml |
| 45 | 45 | enable-versioned-regex: 0 |
| @@ -56,7 +56,7 @@ jobs: | ||
| 56 | 56 | id: app |
| 57 | 57 | # Create a GitHub App token |
| 58 | 58 | # https://github.com/marketplace/actions/create-github-app-token |
| 59 | 59 | uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2 |
| 60 | 60 | with: |
| 61 | 61 | app-id: ${{ vars.ST_BOT_APP_ID }} |
| 62 | 62 | private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }} |
| @@ -66,7 +66,7 @@ jobs: | ||
| 66 | 66 | if: contains(fromJSON('["π©βπ» Good First Issue", "π Help Wanted", "πͺ² Confirmed", "β οΈ High Priority", "β Medium Priority", "π€ Low Priority"]'), github.event.label.name) |
| 67 | 67 | # π€ Issues Helper |
| 68 | 68 | # https://github.com/marketplace/actions/issues-helper |
| 69 | 69 | uses: actions-cool/issues-helper@a610082f8ac0cf03e357eb8dd0d5e2ba075e017e # v3.6.0 |
| 70 | 70 | with: |
| 71 | 71 | actions: 'add-labels' |
| 72 | 72 | token: ${{ steps.app.outputs.token }} |
| @@ -76,7 +76,7 @@ jobs: | ||
| 76 | 76 | if: contains(fromJSON('["β Done", "β Done (staging)", "β°οΈ Stale", "β wontfix"]'), github.event.label.name) |
| 77 | 77 | # π€ Issues Helper |
| 78 | 78 | # https://github.com/marketplace/actions/issues-helper |
| 79 | 79 | uses: actions-cool/issues-helper@a610082f8ac0cf03e357eb8dd0d5e2ba075e017e # v3.6.0 |
| 80 | 80 | with: |
| 81 | 81 | actions: 'remove-labels' |
| 82 | 82 | token: ${{ steps.app.outputs.token }} |
| @@ -86,7 +86,7 @@ jobs: | ||
| 86 | 86 | if: contains(fromJSON('["β wontfix","π Approved","π©βπ» Good First Issue"]'), github.event.label.name) |
| 87 | 87 | # π€ Issues Helper |
| 88 | 88 | # https://github.com/marketplace/actions/issues-helper |
| 89 | 89 | uses: actions-cool/issues-helper@a610082f8ac0cf03e357eb8dd0d5e2ba075e017e # v3.6.0 |
| 90 | 90 | with: |
| 91 | 91 | actions: 'remove-labels' |
| 92 | 92 | token: ${{ steps.app.outputs.token }} |
| @@ -96,7 +96,7 @@ jobs: | ||
| 96 | 96 | if: github.event.label.name == 'πͺ² Confirmed' |
| 97 | 97 | # π€ Issues Helper |
| 98 | 98 | # https://github.com/marketplace/actions/issues-helper |
| 99 | 99 | uses: actions-cool/issues-helper@a610082f8ac0cf03e357eb8dd0d5e2ba075e017e # v3.6.0 |
| 100 | 100 | with: |
| 101 | 101 | actions: 'remove-labels' |
| 102 | 102 | token: ${{ steps.app.outputs.token }} |
| @@ -114,7 +114,7 @@ jobs: | ||
| 114 | 114 | id: app |
| 115 | 115 | # Create a GitHub App token |
| 116 | 116 | # https://github.com/marketplace/actions/create-github-app-token |
| 117 | 117 | uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2 |
| 118 | 118 | with: |
| 119 | 119 | app-id: ${{ vars.ST_BOT_APP_ID }} |
| 120 | 120 | private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }} |
| @@ -123,7 +123,7 @@ jobs: | ||
| 123 | 123 | - name: Remove Stale Label |
| 124 | 124 | # π€ Issues Helper |
| 125 | 125 | # https://github.com/marketplace/actions/issues-helper |
| 126 | 126 | uses: actions-cool/issues-helper@a610082f8ac0cf03e357eb8dd0d5e2ba075e017e # v3.6.0 |
| 127 | 127 | with: |
| 128 | 128 | actions: 'remove-labels' |
| 129 | 129 | token: ${{ steps.app.outputs.token }} |
| @@ -141,7 +141,7 @@ jobs: | ||
| 141 | 141 | id: app |
| 142 | 142 | # Create a GitHub App token |
| 143 | 143 | # https://github.com/marketplace/actions/create-github-app-token |
| 144 | 144 | uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2 |
| 145 | 145 | with: |
| 146 | 146 | app-id: ${{ vars.ST_BOT_APP_ID }} |
| 147 | 147 | private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }} |
| @@ -150,12 +150,12 @@ jobs: | ||
| 150 | 150 | - name: Checkout Repository |
| 151 | 151 | # Checkout |
| 152 | 152 | # https://github.com/marketplace/actions/checkout |
| 153 | 153 | uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
| 154 | 154 | |
| 155 | 155 | - name: Post Issue Comments Based on Labels |
| 156 | 156 | # Label Commenter |
| 157 | 157 | # https://github.com/marketplace/actions/label-commenter |
| 158 | 158 | uses: peaceiris/actions-label-commenter@f0dbbef043eb1b150b566db36b0bdc8b7f505579 # v1.10.0 |
| 159 | 159 | with: |
| 160 | 160 | config_file: .github/issues-auto-comments.yml |
| 161 | 161 | github_token: ${{ steps.app.outputs.token }} |
| @@ -22,7 +22,7 @@ jobs: | ||
| 22 | 22 | id: app |
| 23 | 23 | # Create a GitHub App token |
| 24 | 24 | # https://github.com/marketplace/actions/create-github-app-token |
| 25 | 25 | uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2 |
| 26 | 26 | with: |
| 27 | 27 | app-id: ${{ vars.ST_BOT_APP_ID }} |
| 28 | 28 | private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }} |
| @@ -31,7 +31,7 @@ jobs: | ||
| 31 | 31 | - name: Checkout Repository |
| 32 | 32 | # Checkout |
| 33 | 33 | # https://github.com/marketplace/actions/checkout |
| 34 | 34 | uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
| 35 | 35 | |
| 36 | 36 | - name: Extract Linked Issues from Commit Message |
| 37 | 37 | id: extract_issues |
| @@ -22,7 +22,7 @@ jobs: | ||
| 22 | 22 | id: app |
| 23 | 23 | # Create a GitHub App token |
| 24 | 24 | # https://github.com/marketplace/actions/create-github-app-token |
| 25 | 25 | uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2 |
| 26 | 26 | with: |
| 27 | 27 | app-id: ${{ vars.ST_BOT_APP_ID }} |
| 28 | 28 | private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }} |
| @@ -31,7 +31,7 @@ jobs: | ||
| 31 | 31 | - name: Mark Issues/PRs without Activity |
| 32 | 32 | # Close Stale Issues and PRs |
| 33 | 33 | # https://github.com/marketplace/actions/close-stale-issues |
| 34 | 34 | uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0 |
| 35 | 35 | with: |
| 36 | 36 | repo-token: ${{ steps.app.outputs.token }} |
| 37 | 37 | days-before-stale: 183 |
| @@ -67,7 +67,7 @@ jobs: | ||
| 67 | 67 | id: app |
| 68 | 68 | # Create a GitHub App token |
| 69 | 69 | # https://github.com/marketplace/actions/create-github-app-token |
| 70 | 70 | uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2 |
| 71 | 71 | with: |
| 72 | 72 | app-id: ${{ vars.ST_BOT_APP_ID }} |
| 73 | 73 | private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }} |
| @@ -76,7 +76,7 @@ jobs: | ||
| 76 | 76 | - name: Mark Issues/PRs Awaiting User Response |
| 77 | 77 | # Close Stale Issues and PRs |
| 78 | 78 | # https://github.com/marketplace/actions/close-stale-issues |
| 79 | 79 | uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0 |
| 80 | 80 | with: |
| 81 | 81 | repo-token: ${{ steps.app.outputs.token }} |
| 82 | 82 | days-before-stale: 7 |
| @@ -105,7 +105,7 @@ jobs: | ||
| 105 | 105 | id: app |
| 106 | 106 | # Create a GitHub App token |
| 107 | 107 | # https://github.com/marketplace/actions/create-github-app-token |
| 108 | 108 | uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2 |
| 109 | 109 | with: |
| 110 | 110 | app-id: ${{ vars.ST_BOT_APP_ID }} |
| 111 | 111 | private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }} |
| @@ -114,7 +114,7 @@ jobs: | ||
| 114 | 114 | - name: Mark Issues with Alternative Exists |
| 115 | 115 | # Close Stale Issues and PRs |
| 116 | 116 | # https://github.com/marketplace/actions/close-stale-issues |
| 117 | 117 | uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0 |
| 118 | 118 | with: |
| 119 | 119 | repo-token: ${{ steps.app.outputs.token }} |
| 120 | 120 | days-before-stale: 7 |
| @@ -15,8 +15,8 @@ jobs: | ||
| 15 | 15 | build: |
| 16 | 16 | runs-on: ubuntu-latest |
| 17 | 17 | steps: |
| 18 | 18 | - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 |
| 19 | 19 | - uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3 |
| 20 | 20 | with: |
| 21 | 21 | node-version: 24 |
| 22 | 22 | - run: npm ci |
| @@ -25,8 +25,8 @@ jobs: | ||
| 25 | 25 | needs: build |
| 26 | 26 | runs-on: ubuntu-latest |
| 27 | 27 | steps: |
| 28 | 28 | - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 |
| 29 | 29 | - uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3 |
| 30 | 30 | with: |
| 31 | 31 | node-version: 24 |
| 32 | 32 | registry-url: https://registry.npmjs.org/ |
| @@ -22,7 +22,7 @@ jobs: | ||
| 22 | 22 | id: app |
| 23 | 23 | # Create a GitHub App token |
| 24 | 24 | # https://github.com/marketplace/actions/create-github-app-token |
| 25 | 25 | uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2 |
| 26 | 26 | with: |
| 27 | 27 | app-id: ${{ vars.ST_BOT_APP_ID }} |
| 28 | 28 | private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }} |
| @@ -31,7 +31,7 @@ jobs: | ||
| 31 | 31 | - name: Remove Pending Labels on Close |
| 32 | 32 | # π€ Issues Helper |
| 33 | 33 | # https://github.com/marketplace/actions/issues-helper |
| 34 | 34 | uses: actions-cool/issues-helper@a610082f8ac0cf03e357eb8dd0d5e2ba075e017e # v3.6.0 |
| 35 | 35 | with: |
| 36 | 36 | actions: remove-labels |
| 37 | 37 | token: ${{ steps.app.outputs.token }} |
| @@ -22,7 +22,7 @@ jobs: | ||
| 22 | 22 | id: app |
| 23 | 23 | # Create a GitHub App token |
| 24 | 24 | # https://github.com/marketplace/actions/create-github-app-token |
| 25 | 25 | uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2 |
| 26 | 26 | with: |
| 27 | 27 | app-id: ${{ vars.ST_BOT_APP_ID }} |
| 28 | 28 | private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }} |
| @@ -31,7 +31,7 @@ jobs: | ||
| 31 | 31 | - name: Label if Author is a Repo Maintainer |
| 32 | 32 | # π€ Issues Helper |
| 33 | 33 | # https://github.com/marketplace/actions/issues-helper |
| 34 | 34 | uses: actions-cool/issues-helper@a610082f8ac0cf03e357eb8dd0d5e2ba075e017e # v3.6.0 |
| 35 | 35 | with: |
| 36 | 36 | actions: 'add-labels' |
| 37 | 37 | token: ${{ steps.app.outputs.token }} |
| @@ -31,7 +31,7 @@ jobs: | ||
| 31 | 31 | id: app |
| 32 | 32 | # Create a GitHub App token |
| 33 | 33 | # https://github.com/marketplace/actions/create-github-app-token |
| 34 | 34 | uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2 |
| 35 | 35 | with: |
| 36 | 36 | app-id: ${{ vars.ST_BOT_APP_ID }} |
| 37 | 37 | private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }} |
| @@ -40,7 +40,7 @@ jobs: | ||
| 40 | 40 | - name: Label PR Size |
| 41 | 41 | # Pull Request Size Labeler |
| 42 | 42 | # https://github.com/marketplace/actions/pull-request-size-labeler |
| 43 | 43 | uses: codelytv/pr-size-labeler@4ec67706cd878fbc1c8db0a5dcd28b6bb412e85a # v1.10.23 |
| 44 | 44 | with: |
| 45 | 45 | GITHUB_TOKEN: ${{ steps.app.outputs.token }} |
| 46 | 46 | xs_label: 'π© ⬀ββββ' |
| @@ -68,7 +68,7 @@ jobs: | ||
| 68 | 68 | id: app |
| 69 | 69 | # Create a GitHub App token |
| 70 | 70 | # https://github.com/marketplace/actions/create-github-app-token |
| 71 | 71 | uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2 |
| 72 | 72 | with: |
| 73 | 73 | app-id: ${{ vars.ST_BOT_APP_ID }} |
| 74 | 74 | private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }} |
| @@ -77,12 +77,12 @@ jobs: | ||
| 77 | 77 | - name: Checkout Repository |
| 78 | 78 | # Checkout |
| 79 | 79 | # https://github.com/marketplace/actions/checkout |
| 80 | 80 | uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
| 81 | 81 | |
| 82 | 82 | - name: Apply Labels Based on Branch Name and Target Branch |
| 83 | 83 | # Pull Request Labeler |
| 84 | 84 | # https://github.com/marketplace/actions/labeler |
| 85 | 85 | uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0 |
| 86 | 86 | with: |
| 87 | 87 | configuration-path: .github/pr-auto-labels-by-branch.yml |
| 88 | 88 | repo-token: ${{ steps.app.outputs.token }} |
| @@ -99,7 +99,7 @@ jobs: | ||
| 99 | 99 | id: app |
| 100 | 100 | # Create a GitHub App token |
| 101 | 101 | # https://github.com/marketplace/actions/create-github-app-token |
| 102 | 102 | uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2 |
| 103 | 103 | with: |
| 104 | 104 | app-id: ${{ vars.ST_BOT_APP_ID }} |
| 105 | 105 | private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }} |
| @@ -108,12 +108,12 @@ jobs: | ||
| 108 | 108 | - name: Checkout Repository |
| 109 | 109 | # Checkout |
| 110 | 110 | # https://github.com/marketplace/actions/checkout |
| 111 | 111 | uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
| 112 | 112 | |
| 113 | 113 | - name: Apply Labels Based on Changed Files |
| 114 | 114 | # Pull Request Labeler |
| 115 | 115 | # https://github.com/marketplace/actions/labeler |
| 116 | 116 | uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0 |
| 117 | 117 | env: |
| 118 | 118 | GITHUB_TOKEN: ${{ steps.app.outputs.token }} # labeler action needs some handholding |
| 119 | 119 | with: |
| @@ -133,7 +133,7 @@ jobs: | ||
| 133 | 133 | id: app |
| 134 | 134 | # Create a GitHub App token |
| 135 | 135 | # https://github.com/marketplace/actions/create-github-app-token |
| 136 | 136 | uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2 |
| 137 | 137 | with: |
| 138 | 138 | app-id: ${{ vars.ST_BOT_APP_ID }} |
| 139 | 139 | private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }} |
| @@ -142,7 +142,7 @@ jobs: | ||
| 142 | 142 | - name: Add Vibe Coded Label |
| 143 | 143 | # π€ Issues Helper |
| 144 | 144 | # https://github.com/marketplace/actions/issues-helper |
| 145 | 145 | uses: actions-cool/issues-helper@a610082f8ac0cf03e357eb8dd0d5e2ba075e017e # v3.6.0 |
| 146 | 146 | with: |
| 147 | 147 | actions: 'add-labels' |
| 148 | 148 | token: ${{ steps.app.outputs.token }} |
| @@ -170,7 +170,7 @@ jobs: | ||
| 170 | 170 | # This action runs on comments, which will not receive the env vars for this |
| 171 | 171 | # Create a GitHub App token |
| 172 | 172 | # https://github.com/marketplace/actions/create-github-app-token |
| 173 | 173 | uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2 |
| 174 | 174 | with: |
| 175 | 175 | app-id: ${{ vars.ST_BOT_APP_ID }} |
| 176 | 176 | private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }} |
| @@ -180,7 +180,7 @@ jobs: | ||
| 180 | 180 | if: always() |
| 181 | 181 | # π€ Issues Helper |
| 182 | 182 | # https://github.com/marketplace/actions/issues-helper |
| 183 | 183 | uses: actions-cool/issues-helper@a610082f8ac0cf03e357eb8dd0d5e2ba075e017e # v3.6.0 |
| 184 | 184 | with: |
| 185 | 185 | actions: 'remove-labels' |
| 186 | 186 | token: ${{ steps.app.outputs.token || github.token }} # Use fallback to GITHUB_TOKEN if app token is not available |
| @@ -205,7 +205,7 @@ jobs: | ||
| 205 | 205 | # GitHub Script |
| 206 | 206 | # https://github.com/marketplace/actions/github-script |
| 207 | 207 | id: label-check |
| 208 | 208 | uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 |
| 209 | 209 | with: |
| 210 | 210 | script: | |
| 211 | 211 | const prLabels = context.payload.pull_request.labels.map(label => label.name); |
| @@ -249,7 +249,7 @@ jobs: | ||
| 249 | 249 | id: app |
| 250 | 250 | # Create a GitHub App token |
| 251 | 251 | # https://github.com/marketplace/actions/create-github-app-token |
| 252 | 252 | uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2 |
| 253 | 253 | with: |
| 254 | 254 | app-id: ${{ vars.ST_BOT_APP_ID }} |
| 255 | 255 | private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }} |
| @@ -258,12 +258,12 @@ jobs: | ||
| 258 | 258 | - name: Checkout Repository |
| 259 | 259 | # Checkout |
| 260 | 260 | # https://github.com/marketplace/actions/checkout |
| 261 | 261 | uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
| 262 | 262 | |
| 263 | 263 | - name: Post PR Comments Based on Labels |
| 264 | 264 | # Label Commenter for PRs |
| 265 | 265 | # https://github.com/marketplace/actions/label-commenter |
| 266 | 266 | uses: peaceiris/actions-label-commenter@f0dbbef043eb1b150b566db36b0bdc8b7f505579 # v1.10.0 |
| 267 | 267 | with: |
| 268 | 268 | config_file: .github/pr-auto-comments.yml |
| 269 | 269 | github_token: ${{ steps.app.outputs.token }} |
| @@ -289,7 +289,7 @@ jobs: | ||
| 289 | 289 | id: app |
| 290 | 290 | # Create a GitHub App token |
| 291 | 291 | # https://github.com/marketplace/actions/create-github-app-token |
| 292 | 292 | uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2 |
| 293 | 293 | with: |
| 294 | 294 | app-id: ${{ vars.ST_BOT_APP_ID }} |
| 295 | 295 | private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }} |
| @@ -22,7 +22,7 @@ jobs: | ||
| 22 | 22 | id: app |
| 23 | 23 | # Create a GitHub App token |
| 24 | 24 | # https://github.com/marketplace/actions/create-github-app-token |
| 25 | 25 | uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2 |
| 26 | 26 | with: |
| 27 | 27 | app-id: ${{ vars.ST_BOT_APP_ID }} |
| 28 | 28 | private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }} |
| @@ -31,7 +31,7 @@ jobs: | ||
| 31 | 31 | - name: Check Merge Conflicts |
| 32 | 32 | # Label Conflicting Pull Requests |
| 33 | 33 | # https://github.com/marketplace/actions/label-conflicting-pull-requests |
| 34 | 34 | uses: eps1lon/actions-label-merge-conflict@1df065ebe6e3310545d4f4c4e862e43bdca146f0 # v3.0.3 |
| 35 | 35 | with: |
| 36 | 36 | dirtyLabel: 'π« Merge Conflicts' |
| 37 | 37 | repoToken: ${{ steps.app.outputs.token }} |
| @@ -24,7 +24,7 @@ jobs: | ||
| 24 | 24 | - name: Checkout Repository |
| 25 | 25 | # Checkout |
| 26 | 26 | # https://github.com/marketplace/actions/checkout |
| 27 | 27 | uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
| 28 | 28 | with: |
| 29 | 29 | ref: ${{ github.event.pull_request.head.sha }} |
| 30 | 30 | repository: ${{ github.event.pull_request.head.repo.full_name }} |
| @@ -32,7 +32,7 @@ jobs: | ||
| 32 | 32 | - name: Setup Node.js |
| 33 | 33 | # Setup Node.js environment |
| 34 | 34 | # https://github.com/marketplace/actions/setup-node-js-environment |
| 35 | 35 | uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0 |
| 36 | 36 | with: |
| 37 | 37 | node-version: 20 |
| 38 | 38 | |
| @@ -42,7 +42,7 @@ jobs: | ||
| 42 | 42 | - name: Run ESLint |
| 43 | 43 | # Action ESLint |
| 44 | 44 | # https://github.com/marketplace/actions/action-eslint |
| 45 | 45 | uses: sibiraj-s/action-eslint@bcf41bb9abce43cdbad51ab9b3da2eddaa17eab3 # v3.0.1 |
| 46 | 46 | with: |
| 47 | 47 | token: ${{ secrets.GITHUB_TOKEN }} # ESLint can run with the original permissions |
| 48 | 48 | eslint-args: '--ignore-path=.gitignore --quiet' |
| @@ -62,7 +62,7 @@ jobs: | ||
| 62 | 62 | - name: Checkout Repository |
| 63 | 63 | # Checkout |
| 64 | 64 | # https://github.com/marketplace/actions/checkout |
| 65 | 65 | uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
| 66 | 66 | with: |
| 67 | 67 | ref: ${{ github.event.pull_request.head.sha }} |
| 68 | 68 | repository: ${{ github.event.pull_request.head.repo.full_name }} |
| @@ -70,7 +70,7 @@ jobs: | ||
| 70 | 70 | - name: Setup Node.js |
| 71 | 71 | # Setup Node.js environment |
| 72 | 72 | # https://github.com/marketplace/actions/setup-node-js-environment |
| 73 | 73 | uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0 |
| 74 | 74 | with: |
| 75 | 75 | node-version: 20 |
| 76 | 76 | |
| @@ -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 | |