This repository was archived by the owner on Jun 28, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +51
-0
lines changed
Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Original file line number Diff line number Diff line change 11# action-update-pot
2+
23Github 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 |
You can’t perform that action at this time.
0 commit comments