Skip to content

Commit 76a2497

Browse files
committed
fix(ci): merge two updating workflows
1 parent 52ae348 commit 76a2497

File tree

2 files changed

+18
-76
lines changed

2 files changed

+18
-76
lines changed

.github/workflows/make.yml

Lines changed: 0 additions & 60 deletions
This file was deleted.

.github/workflows/update-generated.yml

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,14 @@ on:
99
branches:
1010
- renovate/**
1111
- main
12-
paths:
13-
- languages.csv
14-
- aliases.csv
12+
pull_request:
13+
14+
permissions:
15+
contents: write
1516

1617
jobs:
1718
submodule-update:
1819
runs-on: ubuntu-24.04
19-
permissions:
20-
contents: write
21-
pull-requests: write
2220

2321
steps:
2422
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -42,20 +40,24 @@ jobs:
4240
- name: Install dependencies
4341
run: uv pip install --system -e .[dev]
4442
- run: make
45-
- name: Update renovate branch
46-
if: github.ref != 'refs/heads/main'
43+
- run: git diff
44+
45+
- uses: pre-commit-ci/lite-action@5d6cc0eb514c891a40562a58a8e71576c5c7fb43 # v1.1.0
46+
if: github.event_name == 'pull_request' && github.actor != 'renovate[bot]'
47+
with:
48+
msg: 'chore: update generated files'
49+
50+
- name: Update current branch
51+
if: github.event_name == 'push' && github.ref_name != 'main'
4752
uses: stefanzweifel/git-auto-commit-action@b863ae1933cb653a53c021fe36dbb774e1fb9403 # v5.2.0
4853
with:
49-
commit_message: 'chore: Updates generated files'
54+
commit_message: 'chore: update generated files'
55+
5056
- name: Create Pull Request
5157
if: github.ref == 'refs/heads/main'
5258
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
5359
with:
5460
branch: create-pull-request/submodule-update
55-
title: 'chore: Updates generated files'
56-
commit-message: 'chore: Updates generated files'
57-
labels: |
58-
dependencies
59-
automerge
60-
permissions:
61-
contents: read
61+
title: 'chore: update generated files'
62+
commit-message: 'chore: update generated files'
63+
token: ${{ secrets.WEBLATE_CI_TOKEN }}

0 commit comments

Comments
 (0)