File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,16 @@ Example workflow to sync commits and tags.
3737
3838``` yaml
3939on :
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 - ' *'
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
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
You can’t perform that action at this time.
0 commit comments