Last active
September 12, 2022 13:05
-
-
Save WaKeMaTTa/d5d86373a49786fe12c83e8535b16ffe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .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 <[email protected]> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment