mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-04-23 18:11:37 +08:00
11
.github/workflows/build.yml
vendored
11
.github/workflows/build.yml
vendored
@@ -61,16 +61,19 @@ jobs:
|
||||
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
|
||||
echo "version=Test" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
- name: Create Tag
|
||||
uses: rickstaa/action-create-tag@v1
|
||||
if: ${{ steps.release.outputs.release == 1 && steps.dev.outputs.dev != 1 }}
|
||||
with:
|
||||
tag: ${{ steps.version.outputs.version }}
|
||||
message: ${{ steps.version.outputs.version }}
|
||||
github_token: ${{ secrets.ACCESS_TOKEN }}
|
||||
- name: Check result
|
||||
run: |
|
||||
echo "release: ${{ steps.release.outputs.release }}"
|
||||
|
||||
Reference in New Issue
Block a user