Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Workflow to sync strings (#10075)
Browse files Browse the repository at this point in the history
  • Loading branch information
st3fan authored Apr 13, 2021
1 parent 1738f05 commit f446651
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/sync-strings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/

name: "Sync Strings"

on:
schedule:
- cron: '0 */4 * * *'

jobs:
main:
name: "Sync Strings"
runs-on: ubuntu-20.04
steps:
- name: "Discover A-C Version"
id: ac-version-for-fenix-beta
uses: mozilla-mobile/ac-version-for-fenix-beta@1.0.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: "Checkout Master Branch"
uses: actions/checkout@v2
with:
path: main
ref: master
- name: "Checkout Work Branch"
uses: actions/checkout@v2
with:
path: work
ref: "releases/${{ steps.ac-version-for-fenix-beta.outputs.major-ac-version }}.0"
- name: "Sync Strings"
uses: mozilla-mobile/sync-strings-action@1.0.0
with:
src: main
dst: work
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
path: work
branch: automation/sync-strings-${{ steps.ac-version-for-fenix-beta.outputs.major-ac-version }}
title: "Uplift Strings from master to releases/${{steps.ac-version-for-fenix-beta.outputs.major-ac-version}}.0"
body: "This (automated) PR sync strings from `master` to `releases/${{steps.ac-version-for-fenix-beta.outputs.major-ac-version}}.0`"

0 comments on commit f446651

Please sign in to comment.