Skip to content

Commit 3531324

Browse files
authored
fix: checkout on main should use current_branch from branch-names action (#283)
1 parent 8990dd3 commit 3531324

19 files changed

+23
-23
lines changed

.github/workflows/audit.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
uses: actions/[email protected]
5353
if: github.event_name != 'pull_request'
5454
with:
55-
ref: ${{ steps.branch-name.outputs.head_ref_branch }}
55+
ref: ${{ steps.branch-name.outputs.current_branch }}
5656
fetch-depth: 1
5757

5858
- name: Check commit message 💬

.github/workflows/bioccheck.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ jobs:
118118
uses: actions/[email protected]
119119
if: github.event_name != 'pull_request'
120120
with:
121-
ref: ${{ steps.branch-name.outputs.head_ref_branch }}
121+
ref: ${{ steps.branch-name.outputs.current_branch }}
122122
path: ${{ github.event.repository.name }}
123123

124124
- name: Check commit message 💬

.github/workflows/build-check-install.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ jobs:
312312
uses: actions/[email protected]
313313
if: github.event_name != 'pull_request'
314314
with:
315-
ref: ${{ steps.branch-name.outputs.head_ref_branch }}
315+
ref: ${{ steps.branch-name.outputs.current_branch }}
316316
path: ${{ github.event.repository.name }}
317317

318318
- name: Check commit message 💬

.github/workflows/gitleaks.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
uses: actions/[email protected]
5656
if: github.event_name != 'pull_request'
5757
with:
58-
ref: ${{ steps.branch-name.outputs.head_ref_branch }}
58+
ref: ${{ steps.branch-name.outputs.current_branch }}
5959

6060
- name: Check commit message 💬
6161
run: |
@@ -114,7 +114,7 @@ jobs:
114114
uses: actions/[email protected]
115115
if: github.event_name != 'pull_request'
116116
with:
117-
ref: ${{ steps.branch-name.outputs.head_ref_branch }}
117+
ref: ${{ steps.branch-name.outputs.current_branch }}
118118
fetch-depth: 0
119119

120120
- name: Check commit message 💬

.github/workflows/grammar.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
uses: actions/[email protected]
5555
if: github.event_name != 'pull_request'
5656
with:
57-
ref: ${{ steps.branch-name.outputs.head_ref_branch }}
57+
ref: ${{ steps.branch-name.outputs.current_branch }}
5858

5959
- name: Check commit message 💬
6060
run: |

.github/workflows/licenses.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
uses: actions/[email protected]
5050
if: github.event_name != 'pull_request'
5151
with:
52-
ref: ${{ steps.branch-name.outputs.head_ref_branch }}
52+
ref: ${{ steps.branch-name.outputs.current_branch }}
5353

5454
- name: Check commit message 💬
5555
run: |

.github/workflows/links.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
uses: actions/[email protected]
6969
if: github.event_name != 'pull_request'
7070
with:
71-
ref: ${{ steps.branch-name.outputs.head_ref_branch }}
71+
ref: ${{ steps.branch-name.outputs.current_branch }}
7272

7373
- name: Check commit message 💬
7474
run: |
@@ -126,7 +126,7 @@ jobs:
126126
uses: actions/[email protected]
127127
if: github.event_name != 'pull_request'
128128
with:
129-
ref: ${{ steps.branch-name.outputs.head_ref_branch }}
129+
ref: ${{ steps.branch-name.outputs.current_branch }}
130130

131131
- name: Check commit message 💬
132132
run: |

.github/workflows/linter.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
uses: actions/[email protected]
5757
if: github.event_name != 'pull_request'
5858
with:
59-
ref: ${{ steps.branch-name.outputs.head_ref_branch }}
59+
ref: ${{ steps.branch-name.outputs.current_branch }}
6060
fetch-depth: 0
6161

6262
- name: Check commit message 💬

.github/workflows/pkgdown.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ jobs:
196196
uses: actions/[email protected]
197197
if: github.event_name != 'pull_request'
198198
with:
199-
ref: ${{ steps.branch-name.outputs.head_ref_branch }}
199+
ref: ${{ steps.branch-name.outputs.current_branch }}
200200
path: ${{ github.event.repository.name }}
201201

202202
- name: Check commit message 💬

.github/workflows/revdepcheck.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
- name: Checkout repo 🛎
6262
uses: actions/[email protected]
6363
with:
64-
ref: ${{ steps.branch-name.outputs.head_ref_branch }}
64+
ref: ${{ steps.branch-name.outputs.current_branch }}
6565
fetch-depth: 1
6666

6767
- name: Restore cache 💰

0 commit comments

Comments
 (0)