mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-07-13 05:16:43 +02:00
Update Flutter submodule and make GitHub actions error out if it doesn't match latest/stable
This commit is contained in:
25
.github/workflows/release.yml
vendored
25
.github/workflows/release.yml
vendored
@ -23,16 +23,27 @@ jobs:
|
||||
gpg_private_key: ${{ secrets.PGP_KEY_BASE64 }}
|
||||
passphrase: ${{ secrets.PGP_PASSPHRASE }}
|
||||
|
||||
- name: Check submodule
|
||||
id: check_submodule
|
||||
run: |
|
||||
SUBMODULE_COMMIT="$(cd .flutter; git rev-parse --short HEAD; cd ..)"
|
||||
FLUTTER_COMMIT="$(flutter --version | head -2 | tail -1 | awk '{print $4}')"
|
||||
echo "SUBMODULE_COMMIT=$SUBMODULE_COMMIT, FLUTTER_COMMIT=$FLUTTER_COMMIT"
|
||||
if [ "$SUBMODULE_COMMIT" != "$FLUTTER_COMMIT" ]; then
|
||||
echo "Your submodule has not been updated!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Extract Version
|
||||
id: extract_version
|
||||
run: |
|
||||
VERSION=$(grep -oP "^version: [^\+]+" pubspec.yaml | tail -c +10)
|
||||
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
||||
if [ ${{ inputs.beta }} == true ]; then BETA=true; else BETA=false; fi
|
||||
echo "beta=$BETA" >> $GITHUB_OUTPUT
|
||||
TAG="v$VERSION"
|
||||
if [ $BETA == true ]; then TAG="$TAG"-beta; fi
|
||||
echo "tag=$TAG" >> $GITHUB_OUTPUT
|
||||
VERSION=$(grep -oP "^version: [^\+]+" pubspec.yaml | tail -c +10)
|
||||
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
||||
if [ ${{ inputs.beta }} == true ]; then BETA=true; else BETA=false; fi
|
||||
echo "beta=$BETA" >> $GITHUB_OUTPUT
|
||||
TAG="v$VERSION"
|
||||
if [ $BETA == true ]; then TAG="$TAG"-beta; fi
|
||||
echo "tag=$TAG" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Build APKs
|
||||
run: |
|
||||
|
Reference in New Issue
Block a user