Skip to content

Commit

Permalink
Add workflows
Browse files Browse the repository at this point in the history
* Add workflows to PMPro Keap.
  • Loading branch information
andrewlimaza committed Aug 12, 2024
1 parent 3fc98fd commit 51fb1ca
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/generate-translations.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Generate Translations
on: workflow_dispatch
jobs:
generate-translations:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: WordPress POT/PO/MO Generator
uses: strangerstudios/action-wp-pot-po-mo-generator@main
with:
generate_pot: 1
generate_po: 1
generate_mo: 1
generate_lang_packs: 1
merge_changes: 1
headers: '{"Report-Msgid-Bugs-To":"[email protected]","Last-Translator":"Paid Memberships Pro <[email protected]>","Language-Team":"Paid Memberships Pro <[email protected]>"}'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23 changes: 23 additions & 0 deletions .github/workflows/sync-labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Sync labels
on:
# You can run this with every type of event, but it's better to run it only when you actually need it.
workflow_dispatch:

jobs:
labels:
runs-on: ubuntu-latest

steps:
- uses: strangerstudios/label-sync@v2
with:
# If you want to use a source repo, you can put is name here (only the owner/repo format is accepted)
source-repo: strangerstudios/paid-memberships-pro

# If you want to delete any additional label, set this to true
delete-other-labels: true

#If you want the action just to show you the preview of the changes, without actually editing the labels, set this to tru
dry-run: false

# You can change the token used to change the labels, this is the default one
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 51fb1ca

Please sign in to comment.