Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gradienceteam/action-update-pot
Github Action for updating .pot
https://github.com/gradienceteam/action-update-pot
actions docker github-actions pot shell translation
Last synced: 2 months ago
JSON representation
Github Action for updating .pot
- Host: GitHub
- URL: https://github.com/gradienceteam/action-update-pot
- Owner: GradienceTeam
- License: gpl-3.0
- Created: 2022-08-13T14:21:42.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-06T12:20:26.000Z (over 1 year ago)
- Last Synced: 2024-04-24T04:32:28.771Z (10 months ago)
- Topics: actions, docker, github-actions, pot, shell, translation
- Language: Shell
- Size: 43.9 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# action-update-pot
[![Chat on Matrix](https://img.shields.io/matrix/Gradience:matrix.org?color=%230dbd8b&label=Gradience&logo=matrix&logoColor=white)](https://matrix.to/#/#Gradience:matrix.org)
[![Chat on Discord](https://dcbadge.vercel.app/api/server/4njFDtfGEZ?style=flat&theme=default-inverted)](https://discord.com/invite/4njFDtfGEZ)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-lateststeps:
- 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 "' | | false |