Skip to content

feat(actions): Deputy scanner #48

feat(actions): Deputy scanner

feat(actions): Deputy scanner #48

Workflow file for this run

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:
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:
scan_and_update:
# 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 }}