Skip to content

Instantly share code, notes, and snippets.

@u12206050
Last active May 5, 2025 09:18
Show Gist options
  • Save u12206050/de300b42c212a3b6800088374b029e45 to your computer and use it in GitHub Desktop.
Save u12206050/de300b42c212a3b6800088374b029e45 to your computer and use it in GitHub Desktop.
Create Phrase Translations PR
name: Phrase Translations
on:
push:
branches:
- 'phrase-translations'
jobs:
create-pr:
if: github.event_name == 'push'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: master
fetch-depth: 0
- name: Reset master branch
run: |
git fetch origin phrase-translations:phrase-translations
git reset --hard phrase-translations
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
title: 'New Phrase Updates'
body: 'Update phrase translations'
branch: 'phrase-translations'
commit-message: 'Update phrase translations'
delete-branch: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment