Skip to content

Commit

Permalink
fix: tag release step in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Leon committed Jan 29, 2024
1 parent 05b741b commit 1042148
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,15 @@ jobs:
with:
fetch-tags: true
fetch-depth: 0

- name: Setup SSH
run: |
git remote set-url origin https://${{ secrets.GH_TOKEN }}@github.com/leona/helix-gpt.git
token: ${{ secrets.GH_TOKEN }}
- name: Tag release
shell: bash
run: |
git config --global user.name "Leon"
git config --global user.email "[email protected]"
latest_tag=$(git describe --tags `git rev-list --tags --max-count=1`)
messages=$(git log $latest_tag..HEAD --pretty=format:"%h - %s")
git tag -m "$messages" -a ${{ github.event.inputs.tag }}
GIT_SSH_COMMAND="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" git push origin ${{ github.event.inputs.tag }}
rm -Rf .git
GIT_SSH_COMMAND="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" git push origin ${{ github.event.inputs.tag }}
- name: exit
shell: bash
Expand Down

0 comments on commit 1042148

Please sign in to comment.