Skip to content

Commit

Permalink
release-upload: checkout repo earlier on, so that git commands to que…
Browse files Browse the repository at this point in the history
…ry the tag succeed
  • Loading branch information
smelc committed May 6, 2024
1 parent 962bb33 commit eb48ca8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/release-upload.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ jobs:
DRY_RUN: ${{ steps.store_target_tag.outputs.DRY_RUN }}
FLAKE_REF: ${{ steps.define_flake_ref.outputs.FLAKE_REF }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Because the target tag may not be HEAD
fetch-tags: true # So that tags are known to git commands
- name: Define target tag (1/2)
if: ${{ inputs.target_tag != '' }} # If a tag was specified manually as input, use it
run: |
Expand All @@ -76,6 +80,7 @@ jobs:
run: |
if [[ "${{ env.TARGET_TAG }}" == "" ]]
then
# Tag was not specified manually as input, and current commit has no tag.
echo "Tag not yet defined, using current commit as reference."
echo "TARGET_TAG=${{ github.ref_name }}" >> "$GITHUB_ENV"
fi
Expand Down Expand Up @@ -166,7 +171,6 @@ jobs:
runs-on: ubuntu-latest
if: ${{ needs.wait_for_hydra.outputs.DRY_RUN == 'false' }}
steps:
- uses: actions/checkout@v4 # We need the repo to execute extract-changelog.sh below
- uses: actions/download-artifact@v4
with:
merge-multiple: true
Expand Down

0 comments on commit eb48ca8

Please sign in to comment.