Skip to content

Commit

Permalink
ci: make yarn update compatible with Weblate using webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Aug 28, 2024
1 parent f1a4fbe commit 9a01775
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/yarn-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ on:
- .github/workflows/yarn-update.yml
- scripts/yarn-update
- scripts/yarn/*
- client/*

permissions:
contents: read
Expand All @@ -28,18 +29,25 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: ./scripts/yarn-update
- run: |
if [ -d client ] ; then
cd client
yarn install
yarn build
cd ..
fi
- name: Update branch
if: github.ref != 'refs/heads/main'
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: 'js: Update vendored libraries'
commit_message: 'chore(js): update vendored libraries'
- name: Create Pull Request
if: github.ref == 'refs/heads/main'
uses: peter-evans/create-pull-request@v6
with:
branch: create-pull-request/yarn-update
title: 'js: Update vendored libraries'
commit-message: 'js: Update vendored libraries'
title: 'chore(js): update vendored libraries'
commit-message: 'chore(js): update vendored libraries'
labels: |
dependencies
automerge

0 comments on commit 9a01775

Please sign in to comment.