Skip to content

Commit

Permalink
Try getting branch from ref
Browse files Browse the repository at this point in the history
  • Loading branch information
pbitty committed May 20, 2021
1 parent 2780918 commit 36fd9ec
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Go
name: Test

on:
push:
Expand Down Expand Up @@ -27,10 +27,14 @@ jobs:
- name: Build
run: go build -mod=vendor

- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/heads\//}

- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
automatic_release_tag: "latest_${{ steps.get_version.outputs.VERSION }}"
prerelease: true
title: "Development Build"
files: |
Expand Down

0 comments on commit 36fd9ec

Please sign in to comment.