Skip to content

get previous version #16

get previous version

get previous version #16

Workflow file for this run

name: Version Verification
on:
push:
branches:
- '**'
jobs:
verify-version:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Get previous version
id: previous_version
run: |
$(git show HEAD~1:.github/workflows/publish.yml)
version=$(git show HEAD~1:.github/workflows/publish.yml | awk '/tags/{print $2}' | sed 's/,$//')
echo "version=$version" >> $GITHUB_ENV
- name: Use Output
id: output
run: echo "Output is $version"