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
https://github.com/actions/checkout/issues/439#issuecomment-965968956
and supposedly fixes this by making it pull specifically from master,
rather than the ref that the workflow was called on.
This commit is contained in:
Serene-Arc 2024-06-01 14:46:18 +10:00 committed by Šarūnas Nejus
parent 591d052647
commit c0ef37c46a
No known key found for this signature in database
GPG key ID: DD28F6704DBE3435

View file

@ -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:
@ -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: