This commit is contained in:
meysamhadeli 2023-01-24 23:53:09 +03:30
parent aa520f4fb3
commit b9e22742a3

View File

@ -15,8 +15,15 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3
- name: Print release tag
run: echo "The release tag is 'v$RESOLVED_VERSION'
- name: Extract version numbers
run: |
version=$(echo $GITHUB_REF | sed 's/refs\/tags\///')
major=$(echo $version | cut -d'.' -f1 | sed 's/v//')
minor=$(echo $version | cut -d'.' -f2)
patch=$(echo $version | cut -d'.' -f3)
echo "The major version number is $major"
echo "The minor version number is $minor"
echo "The patch version number is $patch"
- name: Login to DockerHub
uses: docker/login-action@v2