Skip to content

Commit ae4d096

Browse files
🐛 Fix checkout fetch for tags
1 parent bf9ef3a commit ae4d096

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

.github/workflows/pull-request.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Pull Request
33
on:
44
push:
55
branches-ignore:
6-
- master
6+
- 'master'
77
- 'dependabot**'
88

99
jobs:
@@ -26,6 +26,8 @@ jobs:
2626
steps:
2727
- name: Checkout
2828
uses: actions/checkout@v5
29+
with:
30+
fetch-depth: 0
2931

3032
- name: Extract branch name
3133
id: branch

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ jobs:
114114
run: make push
115115

116116
- name: Create GitHub Release
117-
uses: softprops/action-gh-release@v2.3.3
117+
uses: softprops/action-gh-release@v2
118118
with:
119119
tag_name: ${{ github.event.inputs.version }}
120120
name: ${{ github.event.inputs.version }}

.github/workflows/weekly-dependency-check.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ jobs:
1212
steps:
1313
- name: Checkout
1414
uses: actions/checkout@v5
15+
with:
16+
fetch-depth: 0
1517

1618
- name: Get latest release tag
1719
id: latest-tag

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ A powerful GitHub Action for automatically committing and pushing changes back t
7575
| organization_domain | No | `github.com` | GitHub Enterprise domain name. |
7676
| target_branch | No | *current branch* | Name of a new branch to push the code into. Creates branch if not existing. |
7777

78+
7879
### 📤 Output Parameters
7980

8081
| Output | Description |
@@ -109,6 +110,7 @@ jobs:
109110
commit_message: "Replace foo with bar"
110111
```
111112

113+
112114
### 🔀 Advanced Example: Commit, Push, and Create Pull Request
113115

114116
Commit and push changes to a new branch and create a pull request using [devops-infra/action-pull-request](https://github.com/devops-infra/action-pull-request).
@@ -140,6 +142,7 @@ jobs:
140142
title: ${{ github.event.commits[0].message }}
141143
```
142144

145+
143146
### 💪 Force Push Example: Amending Previous Commit
144147

145148
When you need to amend the previous commit and force push (useful for fixing commit messages or adding forgotten changes).
@@ -174,6 +177,7 @@ jobs:
174177
force_with_lease: true # Safer force push option
175178
```
176179

180+
177181
### 📝 Amend Options
178182

179183
When using `amend: true`, you have several options for handling the commit message:

0 commit comments

Comments
 (0)