mirror of
https://github.com/formbricks/formbricks.git
synced 2026-05-02 19:40:35 -05:00
36378e9c23
Co-authored-by: pandeymangg <anshuman.pandey9999@gmail.com>
43 lines
1.0 KiB
YAML
43 lines
1.0 KiB
YAML
name: Tolgee Tagging on PR Merge
|
|
permissions:
|
|
contents: read
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
tag-production-keys:
|
|
name: Tag Production Keys
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 18 # Ensure compatibility with your project
|
|
|
|
- name: Install Tolgee CLI
|
|
run: npm install -g @tolgee/cli
|
|
|
|
- name: Tag Production Keys
|
|
run: |
|
|
BRANCH_NAME=${GITHUB_REF##*/}
|
|
npx tolgee tag \
|
|
--api-key ${{ secrets.TOLGEE_API_KEY }} \
|
|
--filter-extracted \
|
|
--filter-tag "draft: ${BRANCH_NAME}" \
|
|
--tag production \
|
|
--untag "draft: ${BRANCH_NAME}"
|
|
|
|
- name: Tag Deprecated Keys
|
|
run: |
|
|
npx tolgee tag \
|
|
--api-key ${{ secrets.TOLGEE_API_KEY }} \
|
|
--filter-not-extracted --filter-tag production \
|
|
--tag deprecated --untag production
|