forked from cirruslabs/docker-images-flutter
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 1.02 KB
/
check_flutter_versions.yml
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
name: "Check Flutter versions"
on:
schedule:
# Every 2 hours
- cron: "0 */2 * * *"
workflow_dispatch:
jobs:
check_versions:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
# Install yq and jq
- name: Install yq and jq
run: |
mkdir -p ~/bin
wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O ~/bin/yq
chmod +x ~/bin/yq
echo "$HOME/bin" >> $GITHUB_PATH
sudo apt-get install -y jq curl
- name: Check for new Flutter versions
run: sh scripts/update_flutter_versions.sh
# Create a Pull Request if there are any changes.
# This is automatically checked internally
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
commit-message: "chore: Update Flutter version"
title: "chore: Update Flutter version"
branch: "chore/update-flutter-version"