forked from mozilla-mobile/firefox-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (41 loc) · 1.41 KB
/
firefox-ios-update_credential_provider_script.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Update credential provider script
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch: # adding the workflow_dispatch so it can be triggered manually
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.7]
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r ./test-fixtures/requirements.txt
- name: Modify credential provider script
run: |
python firefox-ios/Client/Assets/CC_Script/CC_Python_Update.py
- name: Commit and push credential provider changed
run: |-
git diff
git diff --quiet || (git add .)
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
commit-message: Refactor [vXXX] auto update credential provider script
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
committer: GitHub <noreply@github.com>
title: Refactor [vXXX] auto update credential provider script
branch: update-cred-provider-script
token: ${{ secrets.GITHUB_TOKEN }}