Skip to content

Commit

Permalink
fixes to inputs and outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
bcdurak committed Oct 21, 2024
1 parent 056f979 commit 561fe1c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/release_finalize.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,16 @@ jobs:
if: github.repository == 'zenml-io/zenml'
runs-on: ubuntu-latest
outputs:
old_version: ${{ steps.new-version.outputs.new_version }}
new_version: ${{ steps.old-version.outputs.old_version }}
old_version: ${{ steps.old-version.outputs.old_version }}
new_version: ${{ steps.new-version.outputs.new_version }}
steps:
# Extract the version
- name: Extract version from branch name
id: new-version
run: |
BRANCH_NAME=${GITHUB_REF#refs/heads/}
NEW_VERSION=${BRANCH_NAME#misc/prepare-release-}
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
echo "::set-output name=new_version::${{ env.NEW_VERSION }}"
echo "new_version=$NEW_VERSION" >> $GITHUB_OUTPUT
# Checkout main as develop is already changed
- name: Checkout code
id: checkout-code
Expand All @@ -42,8 +41,7 @@ jobs:
run: |
LATEST_RELEASE=$(gh release view --json tagName,publishedAt -q '{tag: .tagName, date: .publishedAt}')
OLD_VERSION=$(echo "$LATEST_RELEASE" | jq -r .tag)
echo "OLD_VERSION=$OLD_VERSION" >> $GITHUB_ENV
echo "::set-output name=old_version::${{ env.OLD_VERSION }}"
echo "old_version=$OLD_VERSION" >> $GITHUB_OUTPUT
create-release-branch:
needs: fetch-versions
runs-on: ubuntu-latest
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/release_prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,16 @@ jobs:
if: github.repository == 'zenml-io/zenml'
runs-on: ubuntu-latest
outputs:
old_version: ${{ steps.new-version.outputs.new_version }}
new_version: ${{ steps.old-version.outputs.old_version }}
old_version: ${{ steps.old-version.outputs.old_version }}
new_version: ${{ steps.new-version.outputs.new_version }}
steps:
# Extract the version
- name: Extract version from branch name
id: new-version
run: |
BRANCH_NAME=${GITHUB_REF#refs/heads/}
NEW_VERSION=${BRANCH_NAME#misc/prepare-release-}
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
echo "::set-output name=new_version::${{ env.NEW_VERSION }}"
echo "new_version=$NEW_VERSION" >> $GITHUB_OUTPUT
# Check out main to get the old version
- name: Checkout code
id: checkout-code
Expand All @@ -42,8 +41,7 @@ jobs:
run: |
LATEST_RELEASE=$(gh release view --json tagName,publishedAt -q '{tag: .tagName, date: .publishedAt}')
OLD_VERSION=$(echo "$LATEST_RELEASE" | jq -r .tag)
echo "OLD_VERSION=$OLD_VERSION" >> $GITHUB_ENV
echo "::set-output name=old_version::${{ env.OLD_VERSION }}"
echo "old_version=$OLD_VERSION" >> $GITHUB_OUTPUT
prepare-changes:
needs: fetch-versions
runs-on: ubuntu-latest
Expand Down

0 comments on commit 561fe1c

Please sign in to comment.