Skip to content

Commit 2efe1b8

Browse files
committed
ci: Fix release workflow
1 parent c0a3ad6 commit 2efe1b8

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/release.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@ name: Release @latest
33
on:
44
workflow_dispatch:
55
inputs:
6-
version:
6+
release_type:
77
description: The version to bump (if you choose custom, please include it under custom version)
88
required: true
99
default: 'patch'
1010
type: choice
1111
options:
12+
- 'auto'
1213
- 'patch'
1314
- 'minor'
1415
- 'major'
@@ -77,14 +78,14 @@ jobs:
7778
existing_changelog_path: CHANGELOG.md
7879

7980
update_changelog:
80-
name: "Bump apify: ${{ inputs.version }} version (${{ inputs.custom_version || 'n/a' }} custom version)"
81+
name: Update changelog
8182
if: (!contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, 'docs:'))
8283
needs: [release_metadata, build_and_test]
8384
runs-on: ubuntu-22.04
8485
outputs:
8586
changelog_commitish: ${{ steps.commit.outputs.commit_long_sha || github.sha }}
86-
version: ${{ steps.updated-version.outputs.result }}
87-
release_notes: ${{ steps.changelog.outputs.release_notes }}
87+
version: ${{ needs.release_metadata.outputs.version_number }}
88+
release_notes: ${{ needs.release_metadata.outputs.release_notes }}
8889

8990
steps:
9091
- name: Checkout repository
@@ -120,7 +121,7 @@ jobs:
120121
with:
121122
author_name: Apify Release Bot
122123
author_email: noreply@apify.com
123-
message: 'chore(release): set package version to ${{ steps.updated-version.outputs.result }} and update changelog [skip ci]'
124+
message: 'chore(release): set package version to ${{ needs.release_metadata.outputs.version_number }} and update changelog [skip ci]'
124125

125126
create_github_release:
126127
name: Create github release

0 commit comments

Comments
 (0)