Skip to content

chore(deps): bump @zilliz/milvus2-sdk-node from 2.4.9 to 2.5.2 #7

chore(deps): bump @zilliz/milvus2-sdk-node from 2.4.9 to 2.5.2

chore(deps): bump @zilliz/milvus2-sdk-node from 2.4.9 to 2.5.2 #7

name: Draft Release
on:
pull_request:
types: [closed]
branches:
- main
jobs:
publish:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: "Use NodeJS 14"
uses: actions/setup-node@v2
with:
node-version: '14'
- name: "Determine Version Bump"
id: determine_version
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# Get PR labels
labels=$(gh pr view ${{ github.event.pull_request.number }} --json labels --jq '.labels[].name')
# Default to patch if no valid label is found
bump_type="none"
# Check for major, minor, or patch labels
for label in $labels; do
if [[ "$label" == "bump:major" ]]; then
bump_type="major"
break
elif [[ "$label" == "bump:minor" ]]; then
bump_type="minor"
elif [[ "$label" == "bump:patch" ]]; then
bump_type="patch"
fi
done
echo "bump_type=$bump_type" >> "$GITHUB_OUTPUT"
- name: "Version and Publish"
if : ${{ steps.determine_version.outputs.bump_type != "none" }}

Check failure on line 51 in .github/workflows/auto_draft_release.yml

View workflow run for this annotation

GitHub Actions / Draft Release

Invalid workflow file

The workflow is not valid. .github/workflows/auto_draft_release.yml (Line: 51, Col: 12): Unexpected symbol: '"none"'. Located at position 46 within expression: steps.determine_version.outputs.bump_type != "none" .github/workflows/auto_draft_release.yml (Line: 64, Col: 11): Unexpected symbol: '"none"'. Located at position 46 within expression: steps.determine_version.outputs.bump_type != "none"
run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
# Run Lerna with the determined bump type
npx lerna version ${{ steps.determine_version.outputs.bump_type }} --yes
# Fetch the most recent tag
latest_tag=$(git describe --tags --abbrev=0)
echo "latest_tag=$latest_tag" >> "$GITHUB_OUTPUT"
- name: "Draft GitHub Release"
if: ${{ steps.determine_version.outputs.bump_type != "none" }}
uses: msoftprops/action-gh-release@v2
with:
prerelease: false
draft: true
make_latest: true
generate_release_notes: true
discussion_category_name: Announcements