Skip to content

Commit 43e15f3

Browse files
committed
add token LOOPFOLLOW_TOKEN_AUTOBUMP and skip ci to avoid a loop
1 parent 1b61e0c commit 43e15f3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/auto_version_dev.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@
1515
# for dev → `2.4.1`, then → `2.4.2`
1616
# - next release (main) will be `2.5.0`
1717
#
18+
# Commit Handling:
1819
# The updated version is then committed and pushed back to the `dev` branch.
20+
# - The bump commit includes the `[skip ci]` tag in its message
21+
# - This prevents the workflow from re-triggering itself in a loop
1922
#
2023
# Prerequisites:
2124
# - `LOOP_FOLLOW_MARKETING_VERSION` must exist and be defined using the format:
@@ -38,6 +41,8 @@ jobs:
3841
steps:
3942
- name: Checkout repository
4043
uses: actions/checkout@v4
44+
with:
45+
token: ${{ secrets.LOOPFOLLOW_TOKEN_AUTOBUMP }}
4146

4247
- name: Set up Git
4348
run: |
@@ -82,5 +87,5 @@ jobs:
8287
- name: Commit and push changes
8388
run: |
8489
git add Config.xcconfig
85-
git commit -m "CI: Bump dev version to $NEW_VERSION"
90+
git commit -m "CI: Bump dev version to $NEW_VERSION [skip ci]"
8691
git push

0 commit comments

Comments
 (0)