Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rmch91 committed Mar 1, 2024
1 parent 57143cd commit 367a1c0
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/minor-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
echo "version=2209.10.0" >> $GITHUB_ENV
else
echo "version=${{ github.event.inputs.version }}" >> $GITHUB_ENV
fi;
fi
- name: Create Release Branch
run: |
Expand All @@ -43,7 +43,7 @@ jobs:
else
version_part=$version
prerelease=""
fi;
fi
IFS='.' read -ra ADDR <<< "$version_part"
echo "major=${ADDR[0]}" >> $GITHUB_ENV
Expand All @@ -53,17 +53,12 @@ jobs:
if [[ -n $prerelease ]]; then
release_branch="${release_branch}-${prerelease// /-}"
fi;
fi
echo "RELEASE_BRANCH=$release_branch" >> $GITHUB_ENV
echo "Checking for existence of the branch: $release_branch"
if git ls-remote --heads origin "$release_branch" | grep -q "$release_branch"; then
echo "Error: Branch $release_branch already exists. Please check the branch before proceeding."
exit 1
else
echo "Branch $release_branch does not exist. Creating new one."
git checkout -b "$release_branch"
git checkout -b "$release_branch"

- name: Update SCSS Versioning
run: |
Expand All @@ -87,8 +82,7 @@ jobs:
echo "Error: The configuration file is not up to date. Regenerating dependencies..."
npm run generate:deps
npm run config:update
fi;
fi
npm run generate:deps
npm run test:all-schematics
Expand All @@ -103,7 +97,7 @@ jobs:
with:
branch: "${{ env.RELEASE_BRANCH }}"
delete-branch: true
title: "Release ${{ env.version }}"
title: "Release ${{ github.event.inputs.version }}"
body: "Automated pull request to merge the release branch into develop."
base: "develop"
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 367a1c0

Please sign in to comment.