Skip to content
This repository was archived by the owner on Jun 28, 2024. It is now read-only.

Commit e5ba6ef

Browse files
committed
doc: update readme
1 parent f22256e commit e5ba6ef

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

README.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,53 @@
11
# action-update-pot
2+
23
Github Action for updating .pot
4+
5+
## Usage
6+
7+
### Example usage
8+
9+
```shell
10+
name: "Translation"
11+
12+
on:
13+
push:
14+
branches: [ "main" ]
15+
pull_request:
16+
branches: [ "main" ]
17+
schedule:
18+
- cron: '21 6 * * 5'
19+
20+
jobs:
21+
update-pot:
22+
name: Update .pot
23+
runs-on: ubuntu-latest
24+
25+
steps:
26+
- name: Checkout repository
27+
uses: actions/checkout@v3
28+
29+
- name: Update .pot
30+
uses: AdwCustomizerTeam/action-update-pot@main
31+
with:
32+
title: "Adwaita Manager POT file"
33+
copyright: "Adwaita Manager Team"
34+
license: "GNU GPLv3"
35+
author: "Adwaita Manager Team"
36+
env:
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
39+
```
40+
41+
### Parameters
42+
43+
You must also provide an `GITHUB_TOKEN` in `env`
44+
45+
| Name | Description | Default | Required |
46+
| ------------------ | ------------------------------------------------------------------------- | ------------------ | -------- |
47+
| `destination_path` | Destination path to save generated .pot file | `/po` | false |
48+
| `slug` | Project slug. Defaults to the Github repository name. | $GITHUB_REPOSITORY | false |
49+
| `text_domain` | Text domain to look for in the source code. Defaults to the project slug. | `slug` | false |
50+
| `title` | Replace "SOME DESCRIPTIVE TITLE."' | | false |
51+
| `copyright` | Replace "YEAR THE PACKAGE S COPYRIGHT HOLDER"' | | false |
52+
| `license` | Replace "same license as the PACKAGE package"' | | False |
53+
| `author` | Replace "FIRST AUTHOR <EMAIL@ADDRESS>"' | | false |

0 commit comments

Comments
 (0)