chore: bump version to 8.9.0 #44
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Update Localisation Mod | |
| on: | |
| push: | |
| tags: ["v*"] | |
| workflow_dispatch: | |
| jobs: | |
| update-mod: | |
| name: Update Mod | |
| runs-on: windows-latest | |
| steps: | |
| - name: Harden the runner (Audit all outbound calls) | |
| uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout Peacock | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| persist-credentials: false | |
| token: ${{ secrets.PEACOCKBOT_TOKEN }} | |
| path: "./Peacock" | |
| - name: Checkout Peacock Strings | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| token: ${{ secrets.PEACOCKBOT_TOKEN }} | |
| repository: thepeacockproject/peacock-strings | |
| path: "./PeacockStrings" | |
| - name: Setup Node | |
| uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v6.0.0 | |
| with: | |
| node-version-file: "./Peacock/.nvmrc" | |
| cache: "yarn" | |
| cache-dependency-path: "./Peacock/yarn.lock" | |
| - name: Install Packages | |
| run: | | |
| cd Peacock | |
| yarn install --immutable | |
| - name: Download RPKG-CLI | |
| id: rpkgcli | |
| uses: step-security/release-downloader@97a991ef6b59ac73abb83e8e4b70a73118d27d44 # v1.12.0 | |
| with: | |
| repository: "glacier-modding/RPKG-Tool" | |
| latest: true | |
| fileName: "rpkg_*-cli.zip" | |
| out-file-path: "Peacock/resources" | |
| - name: Download HMLanguageTools | |
| id: hmlt | |
| uses: step-security/release-downloader@97a991ef6b59ac73abb83e8e4b70a73118d27d44 # v1.12.0 | |
| with: | |
| repository: "AnthonyFuller/TonyTools" | |
| latest: true | |
| fileName: "TonyTools.zip" | |
| out-file-path: "Peacock/resources" | |
| - name: Unzip dependencies | |
| run: | | |
| cd Peacock/resources | |
| 7z x ${{ fromJson(steps.rpkgcli.outputs.downloaded_files)[0] }} | |
| 7z x ${{ fromJson(steps.hmlt.outputs.downloaded_files)[0] }} | |
| - name: Rebuild Locale Packages | |
| run: | | |
| cd Peacock | |
| yarn rebuild-locale | |
| - name: Copy peacockstrings.locr.json | |
| run: | | |
| copy ./Peacock/resources/peacockstrings.locr.json ./PeacockStrings/content/chunk0/peacockstrings.locr.json | |
| - name: Push updated Peacock LOCR | |
| uses: step-security/add-and-commit@6b975a6ae39f11794750730d8846a1d2e84699ba # v10.0.0 | |
| with: | |
| cwd: "./PeacockStrings" | |
| add: content/chunk0/peacockstrings.locr.json | |
| author_name: PeacockBot | |
| author_email: admin@thepeacockproject.org | |
| message: "enhancement: update strings" |