Skip to content

Commit 1a9d479

Browse files
committed
Update readme with action fixes after testing it
1 parent ef1c982 commit 1a9d479

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,16 @@ Example workflow to sync commits and tags.
3737

3838
```yaml
3939
on:
40+
on:
4041
push:
42+
# Only trigger for specific branches or changes in specific paths.
43+
branches:
44+
- '*'
45+
paths:
46+
- src/**
47+
# Tag push events should be ignored, they will be handled with the create event below.
48+
tags-ignore:
49+
- '*'
4150
create:
4251
tags:
4352
- '*'
@@ -51,6 +60,9 @@ jobs:
5160
name: Sync commits
5261
steps:
5362
- uses: actions/checkout@v2
63+
with:
64+
persist-credentials: false
65+
fetch-depth: 0
5466

5567
# Add a personal access token to the repository secrets. This will allow the splitter action to push the new commits
5668
- uses: frankdejonge/use-github-token@1.0.1
@@ -68,6 +80,7 @@ jobs:
6880

6981
# Retrieve the branch name of the branch that triggered the build.
7082
- name: Extract branch name
83+
id: vars
7184
run: echo ::set-output name=branch_name::${GITHUB_REF#refs/*/}
7285

7386
# Sync commits and tags for the configured subtree splits

0 commit comments

Comments
 (0)