Skip to content

Commit

Permalink
chore: Sync with WeblateOrg/meta
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Nov 7, 2024
1 parent 1466923 commit 2ca04f7
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 6 deletions.
3 changes: 0 additions & 3 deletions .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
"labels": [
"dependencies"
],
"lockFileMaintenance": {
"enabled": true
},
"rangeStrategy": "widen",
"dependencyDashboard": true,
"automerge": true,
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
fi
- name: pre-commit (PEP 735)
if: steps.detect.outputs.method == 'pep735'
run: uv run --only-group pre-commit pre-commit run --all
run: uv run --no-sources --only-group pre-commit pre-commit run --all
env:
RUFF_OUTPUT_FORMAT: github
REUSE_OUTPUT_FORMAT: github
Expand Down
30 changes: 28 additions & 2 deletions .github/workflows/yarn-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ on:
- scripts/yarn-update
- scripts/yarn/*
- client/*
schedule:
- cron: 30 5 * * 0
workflow_dispatch:

permissions:
contents: read
Expand All @@ -28,26 +31,49 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.WEBLATE_CI_TOKEN }}

- name: Lockfile maintenance
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
run: |
for dir in scripts/yarn client ; do
pushd "$dir"
yarn upgrade
popd
done
- run: ./scripts/yarn-update

- run: |
if [ -d client ] ; then
cd client
yarn install --check-files
yarn build
cd ..
fi
- name: Update branch
- name: Update current branch
if: github.ref != 'refs/heads/main'
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: 'chore(js): update vendored libraries'

- name: Create Pull Request
id: cpr
if: github.ref == 'refs/heads/main'
uses: peter-evans/create-pull-request@v7
with:
branch: create-pull-request/yarn-update
title: 'chore(js): update vendored libraries'
commit-message: 'chore(js): update vendored libraries'

token: ${{ secrets.WEBLATE_CI_TOKEN }}
labels: |
dependencies
automerge
- name: Enable Pull Request Automerge
if: github.ref == 'refs/heads/main' && steps.cpr.outputs.pull-request-operation != 'none'
run: gh pr merge --merge --auto "${{ steps.cpr.outputs.pull-request-number }}"
env:
GH_TOKEN: ${{ secrets.WEBLATE_CI_TOKEN }}

0 comments on commit 2ca04f7

Please sign in to comment.