-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
81 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: GitHub Actions Demo | ||
run-name: ${{ github.actor }} is testing out GitHub Actions 🚀 | ||
on: [push] | ||
jobs: | ||
Explore-GitHub-Actions: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." | ||
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" | ||
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." | ||
- name: Check out repository code | ||
uses: actions/checkout@v4 | ||
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." | ||
- run: echo "🖥️ The workflow is now ready to test your code on the runner." | ||
- name: List files in the repository | ||
run: | | ||
ls ${{ github.workspace }} | ||
- run: echo "🍏 This job's status is ${{ job.status }}." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Pull latest translations fom transifex and make a PR | ||
run-name: ${{ github.actor }} is github with latest translations from transifex 🚀 | ||
on: | ||
pull_request: | ||
types: | ||
- closed | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Transifex CLI action | ||
uses: transifex/cli-action@v2 | ||
with: | ||
token: ${{ secrets.TX_TOKEN }} | ||
- uses: actions/checkout@v4 | ||
- name: List files in the repository | ||
run: ls ${{ github.workspace }} | ||
- name: Show tranisfex version | ||
run: /tmp/tx/tx -v | ||
# - name: Pull from transifex | ||
# run: /tmp/tx/tx pull --translations --all --force | ||
- name: Create Pull Request | ||
id: cpr | ||
uses: peter-evans/create-pull-request@v6 | ||
with: | ||
token: ${{ secrets.PAT }} | ||
commit-message: Update translations from transifex | ||
committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | ||
author: ${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com> | ||
signoff: false | ||
branch: tx-update | ||
delete-branch: true | ||
title: '[TX] Update translations from transifex' | ||
body: | | ||
Update translations | ||
- Updated with *today's* date | ||
- Auto-generated by [create-pull-request][1] | ||
[1]: https://github.com/peter-evans/create-pull-request | ||
Ready to merge. | ||
draft: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Update transifex with latest translations | ||
run-name: ${{ github.actor }} is updating transifex 🚀 | ||
on: [push] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Transifex CLI action | ||
uses: transifex/cli-action@v2 | ||
with: | ||
token: ${{ secrets.TX_TOKEN }} | ||
- uses: actions/checkout@v4 | ||
- name: List files in the repository | ||
run: ls ${{ github.workspace }} | ||
- name: Show tranisfex version | ||
run: /tmp/tx/tx -v | ||
- name: Update gettext and create po files | ||
run: echo tbd | ||
- name: Push to transifex | ||
run: /tmp/tx/tx push |