fix: ci problem.

This commit is contained in:
EstrellaXD
2023-09-24 13:55:13 +08:00
parent 03e23943bf
commit bc4ad22dad

View File

@@ -58,12 +58,14 @@ jobs:
- name: Check version
id: version
run: |
if [[ '${{ github.event_name }}' == 'pull_request' && ${{ github.event.pull_request.merged }} == true ]]; then
echo "version=${{ github.event.pull_request.title }}" >> $GITHUB_OUTPUT
git config --local user.email "action@github.com"
git config --local user.name "github-actions"
git tag ${{ github.event.pull_request.title }}
git push origin ${{ github.event.pull_request.title }}
if [ '${{ github.event_name }}' == 'pull_request']; then
if [ ${{ github.event.pull_request.merged }} == true ]; then
echo "version=${{ github.event.pull_request.title }}" >> $GITHUB_OUTPUT
git config --local user.email "action@github.com"
git config --local user.name "github-actions"
git tag ${{ github.event.pull_request.title }}
git push origin ${{ github.event.pull_request.title }}
fi
elif [[ ${{ github.event_name }} == 'push' && (${{ github.ref }} == *'alpha'* || ${{ github.ref }} == *'beta'*) ]]; then
echo "version=${{ github.ref_name }}" >> $GITHUB_OUTPUT
else