mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-04-13 11:09:49 +08:00
fix: workflows problem
This commit is contained in:
13
.github/workflows/build.yml
vendored
13
.github/workflows/build.yml
vendored
@@ -25,12 +25,15 @@ jobs:
|
||||
pytest
|
||||
|
||||
build-webui:
|
||||
runs-on: ubuntu-latest
|
||||
if: >
|
||||
${{ github.event_name == 'pull_request' }} ||
|
||||
${{ github.event_name == 'push' && github.ref_type == 'tag' && (contains(github.ref, 'alpha') || contains(github.ref, 'beta')) }}
|
||||
runs-on: ubuntu-latest
|
||||
needs: [test]
|
||||
steps:
|
||||
- name: Debug
|
||||
run: |
|
||||
echo "${{
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
@@ -143,10 +146,10 @@ jobs:
|
||||
cache-to: type=gha, scope=${{ github.workflow }}
|
||||
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
if: >
|
||||
${{ github.event_name == 'pull_request' && github.event.pull_request.merged == true }}
|
||||
|| ${{ github.event_name == 'push' && contains(github.ref, 'tags') }}
|
||||
${{ github.event_name == 'pull_request' && github.event.pull_request.merged == true }} ||
|
||||
${{ github.event_name == 'push' && contains(github.ref, 'tags') }}
|
||||
runs-on: ubuntu-latest
|
||||
needs: [ build-docker ]
|
||||
steps:
|
||||
|
||||
@@ -198,4 +201,4 @@ jobs:
|
||||
token: ${{ secrets.TELEGRAM_TOKEN }}
|
||||
message: |
|
||||
New release: ${{ github.event.release.title }}
|
||||
Link: ${{ github.event.release.html_url }}
|
||||
Link: ${{ github.event.release.html_url }}
|
||||
|
||||
Reference in New Issue
Block a user