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

CI: Use flatpak gettext action #801

Merged
merged 1 commit into from
Oct 17, 2023
Merged
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
27 changes: 22 additions & 5 deletions .github/workflows/gettext.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,31 @@ on:
push:
branches: [master]
jobs:
gettext_template:
gettext:
name: Gettext
runs-on: ubuntu-latest
container:
image: ghcr.io/elementary/flatpak-platform/runtime:7.1-x86_64
options: --privileged

steps:
- uses: actions/checkout@v4
- name: Install git, python3-git and jq
run: |
apt-get update
apt-get install git jq python3-git -y

- name: Clone repository
uses: actions/checkout@v4
with:
token: "${{ secrets.GIT_USER_TOKEN }}"
- uses: elementary/actions/gettext-template@master
token: ${{ secrets.GIT_USER_TOKEN }}

- name: Configure Git
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Update Translation Files
uses: elementary/actions/gettext-flatpak@main
with:
manifest-path: 'io.elementary.calendar.yml'
env:
GIT_USER_TOKEN: "${{ secrets.GIT_USER_TOKEN }}"
GIT_USER_NAME: "elementaryBot"
GIT_USER_EMAIL: "builds@elementary.io"