fix: string problem.

This commit is contained in:
EstrellaXD
2023-09-24 11:46:59 +08:00
parent 4b6ac31409
commit 0714390259

View File

@@ -34,7 +34,7 @@ jobs:
- name: If release
id: release
run: |
if [['${{ github.event_name }}' == 'pull_request'] && [${{ github.event.pull_request.merged }} == true]] || \
if [[ '${{ github.event_name }}' == 'pull_request' ] && [ ${{ github.event.pull_request.merged }} == true ]] || \
[[ '${{ github.event_name }}' == 'push' && (${{ github.ref }} == *'alpha'* || ${{ github.ref }} == *'beta'*) ]]; then
echo "release=1" >> $GITHUB_OUTPUT
else
@@ -51,7 +51,7 @@ jobs:
- name: Check version
id: version
run: |
if [ '${{ github.event_name }}' == 'pull_request' && ${{ github.event.pull_request.merged }} == true]; then
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
git config --local user.name "github-actions"