Skip to content

Commit

Permalink
refactor: get latest tag using github ref
Browse files Browse the repository at this point in the history
  • Loading branch information
edersonmberti committed Aug 5, 2021
1 parent a6f2591 commit 76cdbaf
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions .github/workflows/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,9 @@ on:
- completed

jobs:
set-env:
name: Set Enviroment Variables
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.3
with:
fetch-depth: 0
- name: Get previous tag
id: previoustag
uses: "WyriHaximus/github-action-get-previous-tag@v1"
outputs:
TAG: ${{ steps.previoustag.outputs.tag }}

print-env:
name: Print Enviroment Variables
needs: [set-env]
runs-on: ubuntu-latest
steps:
- run: echo ${{ needs.set-env.outputs.TAG }}
- run: echo ${GITHUB_REF##*/}

0 comments on commit 76cdbaf

Please sign in to comment.