mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-04-13 13:09:43 +08:00
fix: ci problem.
This commit is contained in:
14
.github/workflows/build.yml
vendored
14
.github/workflows/build.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user