diff --git a/.github/workflows/version_check.yml b/.github/workflows/version_check.yml index da86816..fc41ce8 100644 --- a/.github/workflows/version_check.yml +++ b/.github/workflows/version_check.yml @@ -21,11 +21,11 @@ jobs: - name: Determine Expected Version id: expected_version run: | + BRANCH_NAME="${GITHUB_REF#refs/heads/}" if [[ "$BRANCH_NAME" == rc/* ]]; then EXPECTED_VERSION="${BRANCH_NAME#rc/}" - echo "::set-output name=version::$EXPECTED_VERSION" + echo "version=$EXPECTED_VERSION" >> $GITHUB_ENV elif [[ "$BRANCH_NAME" == hotfix/* ]]; then - # Fetch tags and increment patch version git fetch --tags LATEST_TAG=$(git describe --tags $(git rev-list --tags --max-count=1)) if [ -z "$LATEST_TAG" ]; then @@ -38,7 +38,7 @@ jobs: PATCH="${VERSION_PARTS[2]}" PATCH=$((PATCH + 1)) EXPECTED_VERSION="${MAJOR}.${MINOR}.${PATCH}" - echo "::set-output name=version::$EXPECTED_VERSION" + echo "version=$EXPECTED_VERSION" >> $GITHUB_ENV else echo "Not an rc/* or hotfix/* branch. Skipping version check." exit 0 diff --git a/Cargo.toml b/Cargo.toml index e469237..2eca38b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "grimoire_css" -version = "1.0.1" +version = "1.1.0" edition = "2021" authors = ["Dmitrii Shatokhin "] description = "A magical CSS system engine for all environments"