2021-04-13 01:50:06 +00:00
|
|
|
# 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/
|
|
|
|
|
2022-11-02 04:37:46 +00:00
|
|
|
name: "Fenix - Sync Strings"
|
2021-04-13 01:50:06 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
2021-04-21 02:16:13 +00:00
|
|
|
- cron: '0 2 * * *'
|
2021-04-13 01:50:06 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
main:
|
|
|
|
name: "Sync Strings"
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
|
|
- name: "Discover Fenix Beta Version"
|
|
|
|
id: fenix-beta-version
|
2022-07-20 16:01:59 +00:00
|
|
|
uses: mozilla-mobile/fenix-beta-version@4.1.0
|
2021-06-07 19:02:18 +00:00
|
|
|
- name: "Skip non-beta versions"
|
|
|
|
uses: andymckay/cancel-action@0.2
|
2022-07-20 16:01:59 +00:00
|
|
|
if: ${{ steps.fenix-beta-version.outputs.beta_version == '' }}
|
2021-04-13 01:50:06 +00:00
|
|
|
- name: "Checkout Master Branch"
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
path: main
|
2021-07-28 12:20:14 +00:00
|
|
|
ref: main
|
2021-04-13 01:50:06 +00:00
|
|
|
- name: "Checkout Beta Branch"
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
path: beta
|
2022-07-20 16:01:59 +00:00
|
|
|
ref: "releases_v${{ steps.fenix-beta-version.outputs.beta_version }}.0.0"
|
2021-04-13 01:50:06 +00:00
|
|
|
- name: "Sync Strings"
|
2021-04-13 15:58:19 +00:00
|
|
|
uses: mozilla-mobile/sync-strings-action@1.0.1
|
2021-04-13 01:50:06 +00:00
|
|
|
with:
|
|
|
|
src: main
|
|
|
|
dst: beta
|
|
|
|
- name: Create Pull Request
|
|
|
|
uses: peter-evans/create-pull-request@v3
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
path: beta
|
2022-07-20 16:01:59 +00:00
|
|
|
branch: automation/sync-strings-${{ steps.fenix-beta-version.outputs.beta_version }}
|
|
|
|
title: "Sync Strings from main to releases_${{steps.fenix-beta-version.outputs.beta_version}}.0"
|
|
|
|
body: "This (automated) PR syncs strings from `main` to `releases_${{steps.fenix-beta-version.outputs.beta_version}}.0.0`"
|