Skip to content

Commit 7fa2f61

Browse files
author
Sevastyan Zhukov
authored
Merge pull request #4094 from mapbox/szh-update-version-workflow
Add the update version workflow
2 parents 181a70c + 93f9e36 commit 7fa2f61

File tree

1 file changed

+35
-1
lines changed

1 file changed

+35
-1
lines changed

.circleci/config.yml

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,6 +662,34 @@ jobs:
662662
notify_success: true
663663
- notify-build-finished
664664

665+
update-version-job:
666+
parameters:
667+
xcode:
668+
type: string
669+
default: "13.4.1"
670+
macos:
671+
xcode: << parameters.xcode >>
672+
environment:
673+
HOMEBREW_NO_AUTO_UPDATE: 1
674+
steps:
675+
- checkout
676+
- *restore-cache-gems
677+
- *restore-cache-podmaster
678+
- *install-gems
679+
- *prepare-netrc-file
680+
- *add-github-to-known-hosts
681+
- install-mbx-ci
682+
- run:
683+
name: Update version
684+
command: |
685+
export GITHUB_WRITER_TOKEN=$(mbx-ci github writer public token)
686+
git remote set-url origin "https://x-access-token:[email protected]/mapbox/mapbox-navigation-ios"
687+
git config --global user.email [email protected] && git config --global user.name mapbox-ci
688+
VERSION=$( echo << pipeline.git.branch >> | sed 's/^trigger-update-version-//' )
689+
./scripts/update-version.sh $VERSION
690+
- *save-cache-podmaster
691+
- *save-cache-gems
692+
665693
workflows:
666694
extended-workflow:
667695
jobs:
@@ -769,4 +797,10 @@ workflows:
769797
- ios-trigger-metrics:
770798
filters:
771799
branches:
772-
only: main
800+
only: main
801+
update-version-workflow:
802+
jobs:
803+
- update-version-job:
804+
filters:
805+
branches:
806+
only: /^trigger-update-version-.*/

0 commit comments

Comments
 (0)