chore(deps): bump @zilliz/milvus2-sdk-node from 2.4.9 to 2.5.2 #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 GitHub Actions / Draft ReleaseInvalid workflow file
|
||
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 | ||