ci: run pr build only from latest commit (#306)

This commit is contained in:
Eligio Mariño
2025-03-09 18:14:52 +01:00
committed by GitHub
parent 9f18883ac6
commit 17ea4a6d5c
5 changed files with 15 additions and 0 deletions
+4
View File
@@ -6,6 +6,10 @@ on:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
jobs:
test_image:
permissions:
@@ -96,6 +96,7 @@ jobs:
run: |
echo "COMMIT_MESSAGE=chore: update flutter dependencies in version.json for ${{ env.FLUTTER_VERSION }}" >> $GITHUB_ENV
# TODO: Generate changelog for the new flutter version, that will be the new tag
- name: Create pull request if there are changes
uses: peter-evans/create-pull-request@dd2324fc52d5d43c699a5636bcf19fceaa70c284 # v7.0.7
with:
+2
View File
@@ -1 +1,3 @@
# TODO: Add image registry URLs to the release changelog
npx git-cliff -t 3.29.1 -c github-keepachangelog -o changelog.md
+2
View File
@@ -1,5 +1,7 @@
#!/usr/bin/env sh
# TODO: Update all versions used in android.yml from version.json, like NDK, CMake, etc.
# Path to the JSON and YAML files
version_file_path="./config/version.json"
test_file_path="./test/android.yml"
+6
View File
@@ -31,6 +31,12 @@ commandTests:
- /home/flutter/sdks/android-sdk/ndk
expectedOutput:
- 26.3.11579264
- name: CMake is pinned
command: ls
args:
- /home/flutter/sdks/android-sdk/cmake
expectedOutput:
- 3.22.1
- name: Android SDK build tools directory only has one directory
command: bash
args: