Skip to content

Commit 27bf9ee

Browse files
committed
Update example and readme
1 parent 9daea64 commit 27bf9ee

File tree

3 files changed

+36
-2
lines changed

3 files changed

+36
-2
lines changed

README.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ workflows:
8686
context: your-context # Case contain your Github Token
8787
token: GITHUB_TOKEN # Token as env_var
8888
git-push: true # Push changelog to remote repository
89-
push-force: true # Force the push to remote repository
9089
filters: *orb_tagged_filters # Trigger to only tag
9190
```
9291
@@ -113,6 +112,15 @@ workflows:
113112
context: your-context # Case contain your Github Token
114113
token: GITHUB_TOKEN # Token as env_var
115114
git-push: false # The changelog will be stored in /tmp/.persist/persist/ and can be retrieved using: - attach_workspace: at: tmp //https://circleci.com/docs/2.0/configuration-reference/#example-7
115+
#Push the changelog to remote repository manually
116+
post-steps:
117+
- run:
118+
command: |
119+
git config user.name "BotUsername"
120+
git config user.email "[email protected]"
121+
git add CHANGELOG.md
122+
git commit -m "Your description [skip ci]"
123+
git push -q https://$<<parameters.token>>@github.com/YourUser/YourProjectName.git master
116124
filters: *orb_tagged_filters # Trigger to only tag
117125
```
118126
@@ -143,7 +151,6 @@ workflows:
143151
context: your-context # Case contain your Github Token
144152
token: GITHUB_TOKEN # Token as env_var
145153
git-push: true # Push changelog to remote repository
146-
push-force: true # Force the push to remote repository
147154
commit-message: Update changelog # Custom commit message
148155
bot-name: my-bot # Custom bot name
149156
bot-email: [email protected] # Custom bot email
@@ -183,6 +190,15 @@ workflows:
183190
output: CUSTOM-CHANGELOG.md
184191
breaking-label: "**Breaking**"
185192
bugs-label: "**Bugs**"
193+
#Push the changelog to remote repository manually
194+
post-steps:
195+
- run:
196+
command: |
197+
git config user.name "BotUsername"
198+
git config user.email "[email protected]"
199+
git add CHANGELOG.md
200+
git commit -m "Your description [skip ci]"
201+
git push -q https://$<<parameters.token>>@github.com/YourUser/YourProjectName.git master
186202
filters: *orb_tagged_filters # Trigger to only tag
187203
```
188204

src/examples/generate-changelog-custom-without-push.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,15 @@ usage:
4646
output: CUSTOM-CHANGELOG.md
4747
breaking-label: "**Breaking**"
4848
bugs-label: "**Bugs**"
49+
#Push the changelog to remote repository manually
50+
post-steps:
51+
- run:
52+
command: |
53+
git config user.name "BotUsername"
54+
git config user.email "[email protected]"
55+
git add CHANGELOG.md
56+
git commit -m "Your description [skip ci]"
57+
git push -q https://$<<parameters.token>>@github.com/YourUser/YourProjectName.git master
4958
filters: *orb_tagged_filters # Trigger to only tag
5059
- print-changelog:
5160
filters: *orb_tagged_filters

src/examples/generate-changelog-default-without-push.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,15 @@ usage:
4242
context: your-context # Case contain your Github Token
4343
token: GITHUB_TOKEN # Token as env_var
4444
push-git: false # The changelog will be save on /tmp/.persist/persist/
45+
#Push the changelog to remote repository manually
46+
post-steps:
47+
- run:
48+
command: |
49+
git config user.name "BotUsername"
50+
git config user.email "[email protected]"
51+
git add CHANGELOG.md
52+
git commit -m "Your description [skip ci]"
53+
git push -q https://$<<parameters.token>>@github.com/YourUser/YourProjectName.git master
4554
filters: *orb_tagged_filters # Trigger to only tag
4655
- print-changelog:
4756
filters: *orb_tagged_filters

0 commit comments

Comments
 (0)