Skip to content

Commit

Permalink
fix for get-version in go.yml for release
Browse files Browse the repository at this point in the history
  • Loading branch information
Jay07GIT committed Jun 4, 2024
1 parent ff78e3f commit b3cc5fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- id: get-version
run: echo "::set-output name=CURRENT_VERSION::$(cat Makefile | head -n1|awk -F= '{print $2}')"
run: |
VERSION=$(grep '^VERSION=' Makefile | awk -F= '{print $2}')
echo "::set-output name=CURRENT_VERSION::$VERSION"
- name: Set up Go
uses: actions/setup-go@v2
with:
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ jobs:
- name: Checkout
uses: actions/[email protected]

- id: get-version
run: |
VERSION=$(grep '^VERSION=' Makefile | awk -F= '{print $2}')
echo "::set-output name=CURRENT_VERSION::$VERSION"

- name: Set up Go
uses: actions/setup-go@v2
with:
Expand Down

0 comments on commit b3cc5fb

Please sign in to comment.