Skip to content

Commit

Permalink
test actions2
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhouYixun committed Sep 6, 2022
1 parent ae2bacb commit a702b9c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: 'Get Previous tag'
id: previoustag
uses: "WyriHaximus/github-action-get-previous-tag@v1"

- name: Set up Go
uses: actions/setup-go@v2
Expand All @@ -19,4 +24,8 @@ jobs:
run: go build -o sib

- name: run
run: ./sib version
run: CURRENT_VERSION=$(./sib version)

- name: compare
run: ${{ steps.previoustag.outputs.tag }} == $CURRENT_VERSION

0 comments on commit a702b9c

Please sign in to comment.