Skip to content

Commit f9017b2

Browse files
committed
Update README to use v6 in examples
1 parent 66f124b commit f9017b2

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Adding git-auto-commit to your Workflow only takes a couple lines of code.
1919
2. Add the following step at the end of your job, after other steps that might add or change files.
2020

2121
```yaml
22-
- uses: stefanzweifel/git-auto-commit-action@v5
22+
- uses: stefanzweifel/git-auto-commit-action@v6
2323
```
2424
2525
Your Workflow should look similar to this example.
@@ -47,7 +47,7 @@ jobs:
4747
#
4848

4949
# Commit all changed files back to the repository
50-
- uses: stefanzweifel/git-auto-commit-action@v5
50+
- uses: stefanzweifel/git-auto-commit-action@v6
5151
```
5252
5353
> [!NOTE]
@@ -56,7 +56,7 @@ jobs:
5656
The following is an extended example with all available options.
5757

5858
```yaml
59-
- uses: stefanzweifel/git-auto-commit-action@v5
59+
- uses: stefanzweifel/git-auto-commit-action@v6
6060
with:
6161
# Optional. Commit message for the created commit.
6262
# Defaults to "Apply automatic changes"
@@ -148,7 +148,7 @@ jobs:
148148
- name: Run php-cs-fixer
149149
uses: docker://oskarstark/php-cs-fixer-ga
150150
151-
- uses: stefanzweifel/git-auto-commit-action@v5
151+
- uses: stefanzweifel/git-auto-commit-action@v6
152152
with:
153153
commit_message: Apply php-cs-fixer changes
154154
```
@@ -170,7 +170,7 @@ You can use these outputs to trigger other Actions in your Workflow run based on
170170
### Example
171171

172172
```yaml
173-
- uses: stefanzweifel/git-auto-commit-action@v5
173+
- uses: stefanzweifel/git-auto-commit-action@v6
174174
id: auto-commit-action #mandatory for the output to show up in ${{ steps }}
175175
with:
176176
commit_message: Apply php-cs-fixer changes
@@ -270,7 +270,7 @@ The example below can be used as a starting point to generate a multiline commit
270270
# Quick and dirty step to get rid of the temporary file holding the commit message
271271
- run: rm -rf commitmessage.txt
272272
273-
- uses: stefanzweifel/git-auto-commit-action@v5
273+
- uses: stefanzweifel/git-auto-commit-action@v6
274274
id: commit
275275
with:
276276
commit_message: ${{ steps.commit_message_step.outputs.commit_message }}
@@ -294,7 +294,7 @@ As git-auto-commit by default does not use **your** username and email when crea
294294
git_commit_gpgsign: true
295295
296296
- name: "Commit and push changes"
297-
uses: stefanzweifel/git-auto-commit-action@v5
297+
uses: stefanzweifel/git-auto-commit-action@v6
298298
with:
299299
commit_author: "${{ steps.import-gpg.outputs.name }} <${{ steps.import-gpg.outputs.email }}>"
300300
commit_user_name: ${{ steps.import-gpg.outputs.name }}
@@ -371,7 +371,7 @@ jobs:
371371
- name: Run php-cs-fixer
372372
uses: docker://oskarstark/php-cs-fixer-ga
373373
374-
- uses: stefanzweifel/git-auto-commit-action@v5
374+
- uses: stefanzweifel/git-auto-commit-action@v6
375375
```
376376

377377
For more information about running Actions on forks, see [this announcement from GitHub](https://github.blog/2020-08-03-github-actions-improvements-for-fork-and-pull-request-workflows/).
@@ -406,7 +406,7 @@ The steps in your workflow might look like this:
406406
echo "message=$(git log -1 --pretty=%s)" >> $GITHUB_OUTPUT
407407
echo "author=$(git log -1 --pretty=\"%an <%ae>\")" >> $GITHUB_OUTPUT
408408
409-
- uses: stefanzweifel/git-auto-commit-action@v5
409+
- uses: stefanzweifel/git-auto-commit-action@v6
410410
with:
411411
commit_author: ${{ steps.last-commit.outputs.author }}
412412
commit_message: ${{ steps.last-commit.outputs.message }}
@@ -462,7 +462,7 @@ You can learn more about Personal Access Token in the [GitHub documentation](htt
462462
If you go the "force pushes" route, you have to enable force pushes to a protected branch (see [documentation](https://help.github.com/en/github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)) and update your Workflow to use force push like this.
463463
464464
```yaml
465-
- uses: stefanzweifel/git-auto-commit-action@v5
465+
- uses: stefanzweifel/git-auto-commit-action@v6
466466
with:
467467
commit_message: Apply php-cs-fixer changes
468468
push_options: --force
@@ -492,7 +492,7 @@ This is due to the fact, that the `*.md`-glob is expanded before sending it to `
492492
To fix this add `disable_globbing: true` to your Workflow.
493493
494494
```yaml
495-
- uses: stefanzweifel/git-auto-commit-action@v5
495+
- uses: stefanzweifel/git-auto-commit-action@v6
496496
with:
497497
file_pattern: '*.md'
498498
disable_globbing: true
@@ -520,7 +520,7 @@ yarn test
520520
521521
We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/stefanzweifel/git-auto-commit-action/tags).
522522
523-
We also provide major version tags to make it easier to always use the latest release of a major version. For example, you can use `stefanzweifel/git-auto-commit-action@v5` to always use the latest release of the current major version.
523+
We also provide major version tags to make it easier to always use the latest release of a major version. For example, you can use `stefanzweifel/git-auto-commit-action@v6` to always use the latest release of the current major version.
524524
(More information about this [here](https://help.github.com/en/actions/building-actions/about-actions#versioning-your-action).)
525525
526526
## Credits

0 commit comments

Comments
 (0)