Skip to content

Instantly share code, notes, and snippets.

@WaKeMaTTa
Last active September 12, 2022 13:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WaKeMaTTa/d5d86373a49786fe12c83e8535b16ffe to your computer and use it in GitHub Desktop.
Save WaKeMaTTa/d5d86373a49786fe12c83e8535b16ffe to your computer and use it in GitHub Desktop.
# .github/workflows/03-pull-phrase-to-github.yml
name: "Locales : Phrase pull on main branch"
on:
workflow_dispatch: # This will allow us to execute this github workflow manually whenever we want.
schedule:
- cron: '0 7 * * 1,2,3,4,5'
jobs:
build:
name: "Phrase : Sync Phrase with Github (main branch)"
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }} # required by peter-evans/create-pull-request@v4
- name: Pull changes from phrase.com
run: bin/phrase pull
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
title: ":globe_with_meridians: Locales : Pull locales from phrase.com"
body: ""
commit-message: ":globe_with_meridians: Locales : Pull locales from phrase.com"
add-paths: config/locales
branch: auto-phrase-sync
branch-suffix: timestamp
base: main
author: Phrase <phrase@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment