Skip to content

Commit 090b38c

Browse files
committed
Fix error with build workflow using wrong ref
Looking at the logs, it's using the ref before the one that increments the version in the previous action in the workflow. This code is from actions/checkout#439 (comment) and supposedly fixes this by making it pull specifically from master, rather than the ref that the workflow was called on.
1 parent 03365cb commit 090b38c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/make_release.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55
inputs:
66
version:
7-
description: 'Version of the new release'
7+
description: 'Version of the new release, just as a number with no prepended "v"'
88
required: true
99

1010
jobs:
@@ -32,6 +32,9 @@ jobs:
3232
needs: increment_version
3333
steps:
3434
- uses: actions/checkout@v4
35+
with:
36+
fetch-depth: 0
37+
ref: master
3538
- name: Set up Python
3639
uses: actions/setup-python@v4
3740
with:

0 commit comments

Comments
 (0)