Mass implementation #90
This file contains 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: Translation Changesets | |
on: | |
pull_request: | |
types: [labeled, synchronize] | |
permissions: | |
contents: write | |
jobs: | |
build-translation-changesets: | |
runs-on: ubuntu-latest | |
if: contains(github.event.pull_request.labels.*.name, 'translations') && github.event.pull_request.user.login == 'studiocms-no-reply' | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
with: | |
ref: ${{ github.head_ref }} | |
token: ${{ secrets.STUDIOCMS_SERVICE_TOKEN }} | |
- name: Install Tools & Dependencies | |
uses: ./.github/actions/install | |
- name: Create Translation Changesets | |
run: pnpm ci:translations:changeset | |
env: | |
CI_PULL_REQUEST_NUMBER: ${{ github.event.pull_request.number }} | |
- name: Commit changes | |
uses: stefanzweifel/git-auto-commit-action@8621497c8c39c72f3e2a999a26b4ca1b5058a842 # v5 | |
with: | |
commit_message: '[ci] changesets' | |
branch: ${{ github.head_ref }} | |
commit_user_name: studiocms-no-reply | |
commit_user_email: no-reply@studiocms.dev | |
commit_author: StudioCMS <no-reply@studiocms.dev> |