Skip to content

Commit

Permalink
Fix error with build workflow using wrong ref
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Serene-Arc committed Jun 1, 2024
1 parent 03365cb commit 090b38c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/make_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:
inputs:
version:
description: 'Version of the new release'
description: 'Version of the new release, just as a number with no prepended "v"'
required: true

jobs:
Expand Down Expand Up @@ -32,6 +32,9 @@ jobs:
needs: increment_version
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: master
- name: Set up Python
uses: actions/setup-python@v4
with:
Expand Down

0 comments on commit 090b38c

Please sign in to comment.