Bug 1786793 - Bump sync-strings-action to 1.0.3
[gecko.git] / mobile / android / .github / workflows / sync-strings.yml
blobf83168be35a885f766f845f94f5e844d9e35abaa
1 # This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/
5 name: "Sync Strings"
7 permissions:
8   contents: write
9   pull-requests: write
11 on:
12   schedule:
13     - cron: '0 2 * * *'
15 jobs:
16   main:
17     name: "Sync Strings"
18     runs-on: ubuntu-20.04
19     steps:
20       - name: "Discover A-C Version"
21         id: ac-version-for-fenix-beta
22         uses: mozilla-mobile/ac-version-for-fenix-beta@1.2.0
23       - name: "Checkout Main Branch"
24         uses: actions/checkout@v2
25         with:
26           path: main
27           ref: main
28       - name: "Checkout Work Branch"
29         uses: actions/checkout@v2
30         with:
31           path: work
32           ref: "releases/${{ steps.ac-version-for-fenix-beta.outputs.major-ac-version }}.0"
33       - name: "Sync Strings"
34         uses: mozilla-mobile/sync-strings-action@1.0.3
35         with:
36           src: main
37           dst: work
38       - name: Create Pull Request
39         uses: peter-evans/create-pull-request@v3
40         with:
41           token: ${{ secrets.GITHUB_TOKEN }}
42           path: work
43           branch: automation/sync-strings-${{ steps.ac-version-for-fenix-beta.outputs.major-ac-version }}
44           title: "Uplift Strings from main to releases/${{steps.ac-version-for-fenix-beta.outputs.major-ac-version}}.0"
45           body: "This (automated) PR sync strings from `main` to `releases/${{steps.ac-version-for-fenix-beta.outputs.major-ac-version}}.0`"