-
Notifications
You must be signed in to change notification settings - Fork 249
43 lines (40 loc) · 1.39 KB
/
deputy.yaml
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: deputy
on:
pull_request: # TODO: Remove
schedule:
- cron: "0 6,12 * * *" # Every day at 06:00 and 12:00
defaults:
run:
shell: bash
# These permissions are needed for creating pull requests.
permissions:
actions: write # TODO: remove
contents: write
pull-requests: write
# Cancels in-progress job when there is another push to same ref.
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-only-cancel-in-progress-jobs-or-runs-for-the-current-workflow
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
check:
# Deputy may run build_runner which benefits from faster runners
runs-on:
labels: amplify-flutter_ubuntu-latest_4-core
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # 3.5.3
with:
fetch-depth: 0 # Fetch all history
- name: Configure Git
run: |
git config --global user.email "[email protected]"
git config --global user.name "Amplify Flutter"
# Deputy needs dart and flutter available for doing post-update tasks
- name: Setup Flutter
uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa # 2.10.0
with:
cache: true
- name: Deputy
uses: ./.github/composite_actions/deputy_scan
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}