Update Flutter Version in FVM #12
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Flutter Version in FVM | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * 0' # Weekly | |
env: | |
CI: true | |
jobs: | |
update-flutter-version: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Set up Dart | |
uses: dart-lang/setup-dart@v1 | |
- name: Install FVM | |
run: dart pub global activate fvm | |
- name: Run fvm doctor | |
run: fvm doctor | |
- name: Run FVM use stable --pin | |
run: fvm use stable --pin --skip-setup | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
commit-message: "Update Flutter version to latest stable" | |
title: "Update Flutter version to latest stable" | |
body: "This PR updates the Flutter version to the latest stable release.\n\nTip: close and reopen this PR to trigger the GitHub Action for PRs!" | |
branch: "update-flutter-stable-${{ github.run_number }}" | |
delete-branch: true |