Skip to content

Commit

Permalink
make the copy action workflow run on-demand, fix npm script name
Browse files Browse the repository at this point in the history
  • Loading branch information
ElliotFriend committed Aug 26, 2024
1 parent 128bd1d commit 392d70a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/copy-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Crowdin Copy and Create PR

on:
workflow_dispatch:
push:
paths: [ 'docs/**', 'platforms/**','i18n/en/**', 'src/pages/**', 'meeting-notes/**' ]
branches: [ main ]
# push:
# paths: [ 'docs/**', 'platforms/**','i18n/en/**', 'src/pages/**', 'meeting-notes/**' ]
# branches: [ main ]

permissions:
contents: write
Expand Down Expand Up @@ -34,8 +34,8 @@ jobs:
- name: Install dependencies
run: yarn install

- name: Run crowdin:copy
run: yarn run crowdin:copy
- name: Run crowdin:fix
run: yarn run crowdin:fix

- name: Configure Git
run: |
Expand All @@ -58,7 +58,7 @@ jobs:
git push origin --delete $BRANCH_NAME || true
git checkout -b $BRANCH_NAME
git add .
git commit -m "chore: Copy ignored files using crowdin:copy"
git commit -m "chore: Copy ignored files using crowdin:fix"
git push --force --set-upstream origin $BRANCH_NAME
echo "branch_name=$BRANCH_NAME" >> $GITHUB_ENV
Expand All @@ -71,4 +71,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh pr create --repo ${{ github.repository }} --base main --head ${{ env.branch_name }} --title "Copy ignored files using crowdin:copy" --body "This PR was created by GitHub Actions to copy ignored files using the crowdin:copy command."
gh pr create --repo ${{ github.repository }} --base main --head ${{ env.branch_name }} --title "Copy ignored files using crowdin:fix" --body "This PR was created by GitHub Actions to copy ignored files using the crowdin:fix command."

0 comments on commit 392d70a

Please sign in to comment.