Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding GH workflow to submit the PR for translation #1515

Merged
merged 1 commit into from
Nov 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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