fix: workflows problem

This commit is contained in:
estrella
2023-06-12 22:10:58 +08:00
parent d3d98c8166
commit 325f7291ef

View File

@@ -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 }}