Is there a way to skip the github build? The problem is that my builds are automatically triggered when pushing to a branch, but after merging to the main branch and triggering the build automatically.I want to upgrade the flutter version of the application, make a commit and tag, push changes to the same branch. The problem is that after pushing a new version of the build from the codemagic itself to current branch, the codemagic triggers build again and I get a recursion. Does anyone know a working way? I have tried all of this, also tried to disable trigger builds on tags and push changes from script with tag at the same time Codemagic build settings Codemagic scriptBranch example.
Codemagic build script:
#!/usr/bin/env bash
set -e # exit on first failed command
set -x # print all executed commands to the log
#if [ "$FCI_BUILD_STEP_STATUS" = "success" ]
#then
#bump code version
perl -i -pe 's/^(version:\s \d \.\d \.\d \ )(\d )$/$1.($2 1)/e' pubspec.yaml
#create a tag and publish
v=`grep 'version: ' pubspec.yaml | sed 's/version: //'`
version="dev-$v"
git commit -m "Bump version to $version" pubspec.yaml
git tag -a -m "Bump app version" $version
git push "https://user:[email protected]/repo/mobile" --follow-tags
#fi
CodePudding user response:
You can add "skip ci" or "ci skip" to the commit message.
It's standard for Codemagic and other continuous integration services.