You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21-21Lines changed: 21 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ Adding git-auto-commit to your Workflow only takes a couple lines of code.
19
19
2. Add the following step at the end of your job, after other steps that might add or change files.
20
20
21
21
```yaml
22
-
- uses: stefanzweifel/git-auto-commit-action@v6
22
+
- uses: stefanzweifel/git-auto-commit-action@v7
23
23
```
24
24
25
25
Your Workflow should look similar to this example.
@@ -39,15 +39,15 @@ jobs:
39
39
contents: write
40
40
41
41
steps:
42
-
- uses: actions/checkout@v4
42
+
- uses: actions/checkout@v5
43
43
with:
44
44
ref: ${{ github.head_ref }}
45
45
46
46
# Other steps that change files in the repository go here
47
47
# …
48
48
49
49
# Commit all changed files back to the repository
50
-
- uses: stefanzweifel/git-auto-commit-action@v6
50
+
- uses: stefanzweifel/git-auto-commit-action@v7
51
51
```
52
52
53
53
> [!NOTE]
@@ -56,7 +56,7 @@ jobs:
56
56
The following is an extended example with all available options.
57
57
58
58
```yaml
59
-
- uses: stefanzweifel/git-auto-commit-action@v6
59
+
- uses: stefanzweifel/git-auto-commit-action@v7
60
60
with:
61
61
# Optional. Commit message for the created commit.
62
62
# Defaults to "Apply automatic changes"
@@ -88,11 +88,11 @@ The following is an extended example with all available options.
88
88
89
89
# Optional. Tag name to be created in the local repository and
90
90
# pushed to the remote repository on the defined branch.
91
-
# If only one of `tag` or `tagging_message` is provided, the value of the provided field will be used for both tag name and message.
92
-
tag: 'v1.0.0'
91
+
# If only one of `tag_name` or `tagging_message` is provided, the value of the provided field will be used for both tag name and message.
92
+
tag_name: 'v1.0.0'
93
93
94
94
# Optional. Message to annotate the created tag with.
95
-
# If only one of `tag` or `tagging_message` is provided, the value of the provided field will be used for both tag name and message.
95
+
# If only one of `tag_name` or `tagging_message` is provided, the value of the provided field will be used for both tag name and message.
96
96
tagging_message: 'Codename "Sunshine"'
97
97
98
98
# Optional. Option used by `git-status` to determine if the repository is
@@ -155,14 +155,14 @@ jobs:
155
155
contents: write
156
156
157
157
steps:
158
-
- uses: actions/checkout@v4
158
+
- uses: actions/checkout@v5
159
159
with:
160
160
ref: ${{ github.head_ref }}
161
161
162
162
- name: Run php-cs-fixer
163
163
uses: docker://oskarstark/php-cs-fixer-ga
164
164
165
-
- uses: stefanzweifel/git-auto-commit-action@v6
165
+
- uses: stefanzweifel/git-auto-commit-action@v7
166
166
with:
167
167
commit_message: Apply php-cs-fixer changes
168
168
```
@@ -184,7 +184,7 @@ You can use these outputs to trigger other Actions in your Workflow run based on
184
184
### Example
185
185
186
186
```yaml
187
-
- uses: stefanzweifel/git-auto-commit-action@v6
187
+
- uses: stefanzweifel/git-auto-commit-action@v7
188
188
id: auto-commit-action #mandatory for the output to show up in ${{ steps }}
189
189
with:
190
190
commit_message: Apply php-cs-fixer changes
@@ -220,7 +220,7 @@ You must use `action/checkout@v2` or later versions to check out the repository.
220
220
In non-`push` events, such as `pull_request`, make sure to specify the `ref` to check out:
221
221
222
222
```yaml
223
-
- uses: actions/checkout@v4
223
+
- uses: actions/checkout@v5
224
224
with:
225
225
ref: ${{ github.head_ref }}
226
226
```
@@ -238,7 +238,7 @@ You can change this by creating a new [Personal Access Token (PAT)](https://gith
238
238
storing the token as a secret in your repository and then passing the new token to the [`actions/checkout`](https://github.com/actions/checkout#usage) Action step.
239
239
240
240
```yaml
241
-
- uses: actions/checkout@v4
241
+
- uses: actions/checkout@v5
242
242
with:
243
243
token: ${{ secrets.PAT }}
244
244
```
@@ -284,7 +284,7 @@ The example below can be used as a starting point to generate a multiline commit
284
284
# Quick and dirty step to get rid of the temporary file holding the commit message
# Checkout the fork/head-repository and push changes to the fork.
377
377
# If you skip this, the base repository will be checked out and changes
@@ -385,7 +385,7 @@ jobs:
385
385
- name: Run php-cs-fixer
386
386
uses: docker://oskarstark/php-cs-fixer-ga
387
387
388
-
- uses: stefanzweifel/git-auto-commit-action@v6
388
+
- uses: stefanzweifel/git-auto-commit-action@v7
389
389
```
390
390
391
391
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/).
@@ -420,7 +420,7 @@ The steps in your workflow might look like this:
@@ -463,7 +463,7 @@ If you create a personal access token (classic), apply the `repo` and `workflow`
463
463
If you create a fine-grained personal access token, apply the `Contents`-permissions.
464
464
465
465
```yaml
466
-
- uses: actions/checkout@v4
466
+
- uses: actions/checkout@v5
467
467
with:
468
468
# We pass the "PAT" secret to the checkout action; if no PAT secret is available to the workflow runner (eg. Dependabot) we fall back to the default "GITHUB_TOKEN".
469
469
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
@@ -477,7 +477,7 @@ You can learn more about Personal Access Token in the [GitHub documentation](htt
477
477
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.
478
478
479
479
```yaml
480
-
- uses: stefanzweifel/git-auto-commit-action@v6
480
+
- uses: stefanzweifel/git-auto-commit-action@v7
481
481
with:
482
482
commit_message: Apply php-cs-fixer changes
483
483
push_options: --force
@@ -507,7 +507,7 @@ This is due to the fact, that the `*.md`-glob is expanded before sending it to `
507
507
To fix this add `disable_globbing: true` to your Workflow.
508
508
509
509
```yaml
510
-
- uses: stefanzweifel/git-auto-commit-action@v6
510
+
- uses: stefanzweifel/git-auto-commit-action@v7
511
511
with:
512
512
file_pattern: '*.md'
513
513
disable_globbing: true
@@ -535,7 +535,7 @@ yarn test
535
535
536
536
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).
537
537
538
-
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.
538
+
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@v7` to always use the latest release of the current major version.
539
539
(More information about this [here](https://help.github.com/en/actions/building-actions/about-actions#versioning-your-action).)
Copy file name to clipboardExpand all lines: UPGRADING.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,12 @@
1
1
# Upgrading
2
2
3
+
## From v6 to v7
4
+
5
+
The previously removed options `create_branch`, `skip_fetch`, and `skip_checkout` have been reintroduced in git-auto-commit v7. If you had removed these options from your workflows when upgrading to v6, you can now add them back if needed.
6
+
7
+
Tagging a commit has been reworked. In addition to the existing `tagging_message`-option, a new `tag_name` option has been added. If you were using `tagging_message`, you can continue to do so, but if you want to specify a custom tag name and tag message, you can now use the `tag_name` and `tagging_message` option.
8
+
(Specifying a `tagging_message` without a `tag_name` will create a tag with the name and message both set to the value of `tagging_message`.)
9
+
3
10
## From v5 to v6
4
11
5
12
The following options have been removed from git-auto-commit and can be removed from your workflows.
0 commit comments