From ba79708104583e5754346185e3bef6c2fe70b614 Mon Sep 17 00:00:00 2001 From: Yushi Homma Date: Thu, 8 Aug 2024 18:42:48 -0700 Subject: [PATCH] fix: fixed tag bumping code --- .github/workflows/sync-to-docker-hub.yaml | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/.github/workflows/sync-to-docker-hub.yaml b/.github/workflows/sync-to-docker-hub.yaml index 7f0654e..42e4f6f 100644 --- a/.github/workflows/sync-to-docker-hub.yaml +++ b/.github/workflows/sync-to-docker-hub.yaml @@ -44,11 +44,17 @@ jobs: ${{ secrets.DOCKER_USER }}/vllm-huggingface:latest ${{ secrets.DOCKER_USER }}/vllm-huggingface:${{ steps.get_version.outputs.VERSION }} - - name: Create and push tag - env: - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} - run: | - git config user.name github-actions - git config user.email github-actions@github.com - git tag ${{ steps.get_version.outputs.VERSION }} - git push origin ${{ steps.get_version.outputs.VERSION }} + - name: Update latest git tag + uses: actions-ecosystem/action-get-latest-tag@v1 + id: get-latest-tag + + - uses: actions-ecosystem/action-bump-semver@v1 + id: bump-semver + with: + current_version: ${{ steps.get-latest-tag.outputs.tag }} + level: minor + + - uses: actions-ecosystem/action-push-tag@v1 + with: + tag: ${{ steps.bump-semver.outputs.new_version }} + message: '${{ steps.bump-semver.outputs.new_version }}'