This repository has been archived by the owner on Jun 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 changed file
with
51 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 |
---|---|---|
@@ -1,2 +1,53 @@ | ||
# action-update-pot | ||
|
||
Github Action for updating .pot | ||
|
||
## Usage | ||
|
||
### Example usage | ||
|
||
```shell | ||
name: "Translation" | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
schedule: | ||
- cron: '21 6 * * 5' | ||
|
||
jobs: | ||
update-pot: | ||
name: Update .pot | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Update .pot | ||
uses: AdwCustomizerTeam/action-update-pot@main | ||
with: | ||
title: "Adwaita Manager POT file" | ||
copyright: "Adwaita Manager Team" | ||
license: "GNU GPLv3" | ||
author: "Adwaita Manager Team" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
``` | ||
|
||
### Parameters | ||
|
||
You must also provide an `GITHUB_TOKEN` in `env` | ||
|
||
| Name | Description | Default | Required | | ||
| ------------------ | ------------------------------------------------------------------------- | ------------------ | -------- | | ||
| `destination_path` | Destination path to save generated .pot file | `/po` | false | | ||
| `slug` | Project slug. Defaults to the Github repository name. | $GITHUB_REPOSITORY | false | | ||
| `text_domain` | Text domain to look for in the source code. Defaults to the project slug. | `slug` | false | | ||
| `title` | Replace "SOME DESCRIPTIVE TITLE."' | | false | | ||
| `copyright` | Replace "YEAR THE PACKAGE S COPYRIGHT HOLDER"' | | false | | ||
| `license` | Replace "same license as the PACKAGE package"' | | False | | ||
| `author` | Replace "FIRST AUTHOR <EMAIL@ADDRESS>"' | | false | |