You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
run: echo -e "package api\n\n// Version - API version\nconst Version = \"${{ env.VERSION }}\"" > ./api/version.go
48
+
run: |
49
+
# Assuming VERSION is in the format 'major.minor'
50
+
IFS='.' read -r MAJOR MINOR <<< "${{ env.VERSION }}"
51
+
# Create a Go file with major and minor constants
52
+
echo -e "package api\n\n// MajorVersion - Major component of the API version\nconst MajorVersion = $MAJOR\n\n// MinorVersion - Minor component of the API version\nconst MinorVersion = $MINOR" > ./api/version.go
49
53
50
54
- name: Package Generated Files
51
55
run: tar -czvf go-api-files-${{ env.VERSION }}.tar.gz ./api
0 commit comments