Skip to content

Commit

Permalink
Fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dzeyelid committed Jan 18, 2021
1 parent 2684b1a commit f0bcf9a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release-functions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ jobs:
path: ${{ env.archive-file-name }}
- name: Get latest release
id: get_latest_release
continue-on-error: true
uses: octokit/[email protected]
with:
route: GET /repos/{repo}/releases/latest
Expand All @@ -66,13 +67,13 @@ jobs:
id: next_release_version
uses: christian-draeger/[email protected]
with:
current-version: ${{ steps.get_latest_release.outputs.data }}
current-version: ${{ steps.get_latest_release.outputs.data || '0.0.0' }}
version-fragment: 'feature'
- name: Create draft release
id: create_release
uses: actions/create-release@v1
with:
tag_name: ${{ steps.next_release_version.outputs.next-version || '0.0.0' }}
tag_name: ${{ steps.next_release_version.outputs.next-version }}
draft: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit f0bcf9a

Please sign in to comment.