Upgrade Dart Dependencies #1202
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: Upgrade Dart Dependencies | |
on: | |
schedule: | |
- cron: '0 21 * * *' # everyday, 21:00 (UTC) | |
workflow_dispatch: | |
jobs: | |
upgrade_dart_dependencies: | |
runs-on: macos-latest | |
timeout-minutes: 15 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dart-lang/setup-dart@v1 | |
- name: setup llvm for ffigen | |
run: brew install llvm | |
- name: upgrade dependencies on lib | |
run: dart pub upgrade --major-versions --tighten | |
- name: run ffigen | |
run: | | |
libedax_build_command="make universal_osx_libbuild" dst="." ./scripts/build_libedax.sh | |
dart run ffigen --config ffigen.yaml --verbose severe && dart format --fix . | |
- name: upgrade dependencies on example | |
run: cd example && dart pub upgrade --major-versions --tighten | |
# See: https://github.com/peter-evans/create-pull-request/tree/master#reference-example | |
- name: create PR | |
id: create_pull_request | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
token: ${{ secrets.PAT }} # See: https://github.com/peter-evans/create-pull-request/blob/master/docs/concepts-guidelines.md#triggering-further-workflow-runs | |
# See: https://github.com/peter-evans/create-pull-request/issues/593 | |
committer: GitHub <[email protected]> | |
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> | |
commit-message: 'dart pub upgrade --major-versions --tighten' | |
title: '`dart pub upgrade --major-versions --tighten`' | |
body: | | |
Auto-generated by [create-pull-request](https://github.com/peter-evans/create-pull-request) | |
--- | |
See: https://github.com/peter-evans/create-pull-request/blob/master/docs/concepts-guidelines.md#triggering-further-workflow-runs | |
branch: upgrade_dart_dependencies | |
delete-branch: true | |
labels: dependencies | |
- name: enable auto-merge | |
if: ${{ steps.create_pull_request.outputs.pull-request-number != '' }} | |
run: gh pr merge ${{ steps.create_pull_request.outputs.pull-request-number }} --squash --auto | |
env: | |
GH_TOKEN: ${{ secrets.PAT }} |