Skip to content

Commit 1cd4b34

Browse files
authored
Create phrase-translations-pr.yml
1 parent d711c36 commit 1cd4b34

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Phrase Translations
2+
3+
on:
4+
push:
5+
branches:
6+
- 'phrase-translations'
7+
8+
jobs:
9+
create-pr:
10+
if: github.event_name == 'push'
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
with:
16+
ref: master
17+
fetch-depth: 0
18+
19+
- name: Reset master branch
20+
run: |
21+
git fetch origin phrase-translations:phrase-translations
22+
git reset --hard phrase-translations
23+
24+
- name: Create Pull Request
25+
uses: peter-evans/create-pull-request@v5
26+
with:
27+
title: 'New Phrase Updates'
28+
body: 'Update phrase translations'
29+
branch: 'phrase-translations'
30+
commit-message: 'Update phrase translations'
31+
delete-branch: true

0 commit comments

Comments
 (0)