diff --git a/.github/workflows/sync-dart-sdk.yml b/.github/workflows/sync-dart-sdk.yml new file mode 100644 index 00000000..f9741cd0 --- /dev/null +++ b/.github/workflows/sync-dart-sdk.yml @@ -0,0 +1,28 @@ +name: Sync Dart SDK + +on: + pull_request: + types: [opened, synchronize, reopened] + paths: + - 'mise.toml' + - 'pubspec.yaml' + - 'pubspec.lock' + +permissions: + contents: write + +concurrency: + group: sync-dart-sdk-${{ github.head_ref }} + cancel-in-progress: true + +jobs: + sync: + name: Sync Dart SDK pin + if: ${{ github.event.pull_request.head.repo.full_name == github.repository }} + uses: RubberDuckCrew/flutter-workflow/.github/workflows/workflow-sync-dart-sdk.yml@e94cc1054d888c1b348f8941bd753e2ad6bacbcd # v1.3.0 + with: + ref: ${{ github.event.pull_request.head.sha }} + working-directory: '.' + bot-app-id: ${{ vars.RUBBERDUCKCREW_BOT_APP_ID }} + secrets: + BOT_APP_PRIVATE_KEY: ${{ secrets.RUBBERDUCKCREW_BOT_APP_PRIVATE_KEY }} diff --git a/pubspec.lock b/pubspec.lock index 800b39c5..64aa6720 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -958,5 +958,5 @@ packages: source: hosted version: "3.1.4" sdks: - dart: ">=3.13.0 <3.14.0" + dart: "3.13.4" flutter: "3.47.5" diff --git a/pubspec.yaml b/pubspec.yaml index 11a2325e..8d5c3100 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -19,7 +19,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev version: 1.0.0-alpha.2 environment: - sdk: ">=3.13.0 <3.14.0" + sdk: 3.13.4 flutter: 3.47.5 # Dependencies specify other packages that your package needs in order to work.