Skip to content

Commit 35b3573

Browse files
authored
Create update_changes.yml
1 parent dddb1c2 commit 35b3573

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/update_changes.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Update Changes
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
- cron: '0 0 1 * *'
6+
7+
8+
jobs:
9+
create_pr:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v3
14+
15+
- name: Install dependencies
16+
run: pip install -r requirements.txt && apt install gettext
17+
18+
- name: Run merge.py
19+
run: python merge.py branch ${GITHUB_REF##*/}
20+
21+
- name: Create Pull Request
22+
uses: peter-evans/create-pull-request@v4.2.3
23+
with:
24+
token: ${{ secrets.PAT }}
25+
commit-message: Translation Update
26+
committer: python-docs-tr <python.docs.tr@gmail.com>
27+
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
28+
signoff: true
29+
branch: translation-update
30+
delete-branch: true
31+
title: 'Translation Update'
32+
body: |
33+
Update report
34+
- Updated with *today's* date
35+
- Auto-generated by [create-pull-request][1]
36+
labels: |
37+
report
38+
automated pr
39+
reviewers: |
40+
egeakman
41+
ardasak

0 commit comments

Comments
 (0)