Skip to content

Commit 8766c38

Browse files
authored
Merge pull request #1515 from ikedas/submit-pr-for-translation by ikedas
Adding GH workflow to submit the PR for translation
2 parents 6df4c71 + 922ae85 commit 8766c38

File tree

3 files changed

+39
-3
lines changed

3 files changed

+39
-3
lines changed

.github/release.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Configuration for Automated release notes.
2+
3+
changelog:
4+
exclude:
5+
labels:
6+
- ignore-for-release
7+
categories:
8+
- title: What's Changed
9+
labels:
10+
- "*"
11+

.github/workflows/make-check.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ on:
55
tags-ignore:
66
- '*'
77
pull_request:
8-
branches:
9-
- '*'
8+
branches-ignore:
9+
- 'translation'
1010

1111
jobs:
1212
make-check:
@@ -18,6 +18,7 @@ jobs:
1818
- 'macos-latest'
1919
- 'ubuntu-latest'
2020
perl:
21+
- '5'
2122
- '5.34'
2223
- '5.32'
2324
- '5.30'
@@ -30,7 +31,7 @@ jobs:
3031
- '5.16'
3132
name: Perl ${{ matrix.perl }} on ${{ matrix.os }}
3233
steps:
33-
- uses: actions/checkout@v2
34+
- uses: actions/checkout@v3
3435
- name: Install dependencies for Linux
3536
if: runner.os == 'Linux'
3637
run: |
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
on:
2+
push:
3+
branches:
4+
- translation
5+
paths:
6+
- 'po/**'
7+
8+
env:
9+
GH_PR_TITLE: Update translation
10+
GH_PR_BODY: This pull request was automatically submitted.
11+
GH_PR_LABEL: translation,on going,ignore-for-release
12+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13+
14+
jobs:
15+
submit-pr-for-translation:
16+
if: github.repository_owner == 'sympa-community'
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v3
20+
- name: Submit PR to update translation
21+
run: >
22+
gh pr create -H $GITHUB_REPOSITORY_OWNER:$GITHUB_REF_NAME
23+
-t "$GH_PR_TITLE" -b "$GH_PR_BODY" -l "$GH_PR_LABEL"
24+
|| true

0 commit comments

Comments
 (0)