Browse Source

Fix version variables in GitHub Release Draft (#4)

pull/6/head
Vince Grassia 4 years ago committed by GitHub
parent
commit
e9c9701265
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      .github/workflows/release.yml

9
.github/workflows/release.yml

@ -13,7 +13,6 @@ jobs:
name: Setup name: Setup
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
outputs: outputs:
release_version: ${{ steps.get-release.outputs.version }}
branch-name: ${{ steps.branch.outputs.branch-name }} branch-name: ${{ steps.branch.outputs.branch-name }}
steps: steps:
- name: Branch check - name: Branch check
@ -35,7 +34,6 @@ jobs:
repository: bitwarden/self-host repository: bitwarden/self-host
- name: Check Release Version - name: Check Release Version
id: get-release
env: env:
RELEASE_VERSION: ${{ github.event.inputs.release_version }} RELEASE_VERSION: ${{ github.event.inputs.release_version }}
PREVIOUS_RELEASE_VERSION: ${{ steps.get-self-host.outputs.version }} PREVIOUS_RELEASE_VERSION: ${{ steps.get-self-host.outputs.version }}
@ -55,8 +53,7 @@ jobs:
release: release:
name: Create GitHub Release name: Create GitHub Release
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
needs: needs: setup
- setup
steps: steps:
- name: Checkout repo - name: Checkout repo
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
@ -71,8 +68,8 @@ jobs:
bitwarden.ps1, bitwarden.ps1,
run.ps1' run.ps1'
commit: ${{ github.sha }} commit: ${{ github.sha }}
tag: "v${{ needs.setup.outputs.release_version }}" tag: "v${{ github.event.inputs.release_version }}"
name: "Version ${{ needs.setup.outputs.release_version }}" name: "Version ${{ github.event.inputs.release_version }}"
body: "<insert release notes here>" body: "<insert release notes here>"
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
draft: true draft: true

Loading…
Cancel
Save