Skip to content

Commit

Permalink
fix: fix broken release workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
mgvalverde committed Aug 30, 2024
1 parent c42b6fc commit 0f0bbff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,4 @@ jobs:
contents: write

with:
ref_tag: "v${{needs.build.outputs.target_version}}"


tag_name: "${{needs.build.outputs.target_version}}"
8 changes: 4 additions & 4 deletions .github/workflows/release_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@ on:
inputs:
tag_name:
type: string
description: "Release tag"
description: "Release tag. Format: X.Y.Z"
default: ""
workflow_call:
inputs:
tag_name:
type: string
description: "Release tag"
description: "Release tag. Format: X.Y.Z"
default: ""

env:
POETRY_VERSION: "1.8.3"
PYTHON_VERSION: "3.9"
LATEST_TAG: v$(git tag --sort=taggerdate | tail -1 | cut -c2-)
LATEST_TAG: $(git tag --sort=taggerdate | tail -1 | cut -c2-)

permissions:
contents: write
Expand All @@ -42,7 +42,7 @@ jobs:
- run: |
echo "TARGET_TAG=${{inputs.tag_name || env.LATEST_TAG}}" >> $GITHUB_ENV
- run: |
echo "TARGET_VERSION=$(echo ${{env.TARGET_TAG}} | sed -E 's/v([0-9]+\.[0-9]+)\.[0-9]+/\1.x/')" >> $GITHUB_ENV
echo "TARGET_VERSION=$(echo ${{env.TARGET_TAG}} | sed -E 's/([0-9]+\.[0-9]+)\.[0-9]+/\1.x/')" >> $GITHUB_ENV
# Ops
- name: Setup Docs Deploy
run: |
Expand Down

0 comments on commit 0f0bbff

Please sign in to comment.