Skip to content

Commit 36ed1c3

Browse files
authored
fixes to inputs and outputs (#3113)
1 parent 056f979 commit 36ed1c3

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

.github/workflows/release_finalize.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,16 @@ jobs:
1111
if: github.repository == 'zenml-io/zenml'
1212
runs-on: ubuntu-latest
1313
outputs:
14-
old_version: ${{ steps.new-version.outputs.new_version }}
15-
new_version: ${{ steps.old-version.outputs.old_version }}
14+
old_version: ${{ steps.old-version.outputs.old_version }}
15+
new_version: ${{ steps.new-version.outputs.new_version }}
1616
steps:
1717
# Extract the version
1818
- name: Extract version from branch name
1919
id: new-version
2020
run: |
2121
BRANCH_NAME=${GITHUB_REF#refs/heads/}
2222
NEW_VERSION=${BRANCH_NAME#misc/prepare-release-}
23-
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
24-
echo "::set-output name=new_version::${{ env.NEW_VERSION }}"
23+
echo "new_version=$NEW_VERSION" >> $GITHUB_OUTPUT
2524
# Checkout main as develop is already changed
2625
- name: Checkout code
2726
id: checkout-code
@@ -42,8 +41,7 @@ jobs:
4241
run: |
4342
LATEST_RELEASE=$(gh release view --json tagName,publishedAt -q '{tag: .tagName, date: .publishedAt}')
4443
OLD_VERSION=$(echo "$LATEST_RELEASE" | jq -r .tag)
45-
echo "OLD_VERSION=$OLD_VERSION" >> $GITHUB_ENV
46-
echo "::set-output name=old_version::${{ env.OLD_VERSION }}"
44+
echo "old_version=$OLD_VERSION" >> $GITHUB_OUTPUT
4745
create-release-branch:
4846
needs: fetch-versions
4947
runs-on: ubuntu-latest

.github/workflows/release_prepare.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,16 @@ jobs:
1111
if: github.repository == 'zenml-io/zenml'
1212
runs-on: ubuntu-latest
1313
outputs:
14-
old_version: ${{ steps.new-version.outputs.new_version }}
15-
new_version: ${{ steps.old-version.outputs.old_version }}
14+
old_version: ${{ steps.old-version.outputs.old_version }}
15+
new_version: ${{ steps.new-version.outputs.new_version }}
1616
steps:
1717
# Extract the version
1818
- name: Extract version from branch name
1919
id: new-version
2020
run: |
2121
BRANCH_NAME=${GITHUB_REF#refs/heads/}
2222
NEW_VERSION=${BRANCH_NAME#misc/prepare-release-}
23-
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
24-
echo "::set-output name=new_version::${{ env.NEW_VERSION }}"
23+
echo "new_version=$NEW_VERSION" >> $GITHUB_OUTPUT
2524
# Check out main to get the old version
2625
- name: Checkout code
2726
id: checkout-code
@@ -42,8 +41,7 @@ jobs:
4241
run: |
4342
LATEST_RELEASE=$(gh release view --json tagName,publishedAt -q '{tag: .tagName, date: .publishedAt}')
4443
OLD_VERSION=$(echo "$LATEST_RELEASE" | jq -r .tag)
45-
echo "OLD_VERSION=$OLD_VERSION" >> $GITHUB_ENV
46-
echo "::set-output name=old_version::${{ env.OLD_VERSION }}"
44+
echo "old_version=$OLD_VERSION" >> $GITHUB_OUTPUT
4745
prepare-changes:
4846
needs: fetch-versions
4947
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)