Skip to content

Commit

Permalink
ci: Verify released binary version
Browse files Browse the repository at this point in the history
Signed-off-by: Arjun Raja Yogidas <[email protected]>
  • Loading branch information
coderbirju committed Sep 17, 2024
1 parent 4c21e63 commit 9574265
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/release-automation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
workflow_dispatch:
workflow_call:
env:
GO_VERSION: '1.23.0'
GO_VERSION: '1.22.7'
permissions:
contents: write
deployments: write
Expand All @@ -30,6 +30,8 @@ jobs:
STATIC_BINARY_NAME: ''
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
fetch-tags: true
- name: 'Echo RELEASE_TAG ENV'
run: echo ${{ env.RELEASE_TAG }}
- name: Setup variables and release directories
Expand All @@ -45,6 +47,18 @@ jobs:
run: make licenses
- name: Create release binaries
run: make RELEASE_TAG=${{ env.RELEASE_TAG }} release
- name: Verify Release version
run: |
mkdir output
tar -xzf release/${{ env.DYNAMIC_BINARY_NAME }} -C ./output
BINARY_VERSION=$(./output/finch-daemon --version | grep -oP '\d+\.\d+\.\d+')
export release_tag=${{ env.RELEASE_TAG }}
export release_version=${release_tag/v/}
if ["$BINARY_VERSION" != "$release_version"]; then
echo "version mismath"
exit 1
fi
shell: bash
- uses: actions/upload-artifact@v4
with:
name: artifacts
Expand Down

0 comments on commit 9574265

Please sign in to comment.