Skip to content

Commit

Permalink
Merge pull request #1515 from ikedas/submit-pr-for-translation by ikedas
Browse files Browse the repository at this point in the history
Adding GH workflow to submit the PR for translation
  • Loading branch information
ikedas authored Nov 14, 2022
2 parents 6df4c71 + 922ae85 commit 8766c38
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 3 deletions.
11 changes: 11 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Configuration for Automated release notes.

changelog:
exclude:
labels:
- ignore-for-release
categories:
- title: What's Changed
labels:
- "*"

7 changes: 4 additions & 3 deletions .github/workflows/make-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ on:
tags-ignore:
- '*'
pull_request:
branches:
- '*'
branches-ignore:
- 'translation'

jobs:
make-check:
Expand All @@ -18,6 +18,7 @@ jobs:
- 'macos-latest'
- 'ubuntu-latest'
perl:
- '5'
- '5.34'
- '5.32'
- '5.30'
Expand All @@ -30,7 +31,7 @@ jobs:
- '5.16'
name: Perl ${{ matrix.perl }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install dependencies for Linux
if: runner.os == 'Linux'
run: |
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/submit-pr-for-translation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
on:
push:
branches:
- translation
paths:
- 'po/**'

env:
GH_PR_TITLE: Update translation
GH_PR_BODY: This pull request was automatically submitted.
GH_PR_LABEL: translation,on going,ignore-for-release
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
submit-pr-for-translation:
if: github.repository_owner == 'sympa-community'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Submit PR to update translation
run: >
gh pr create -H $GITHUB_REPOSITORY_OWNER:$GITHUB_REF_NAME
-t "$GH_PR_TITLE" -b "$GH_PR_BODY" -l "$GH_PR_LABEL"
|| true

0 comments on commit 8766c38

Please sign in to comment.