no log: fix CI

This commit is contained in:
morpheus65535 2023-08-04 10:43:10 -04:00
parent 64af56cb80
commit ec2d10f195
1 changed files with 19 additions and 0 deletions

View File

@ -7,6 +7,7 @@ on:
- frontend/**
- bazarr/**
- libs/**
- migrations/**
- bazarr.py
- requirements.txt
- dev-requirements.txt
@ -22,9 +23,18 @@ jobs:
Frontend:
runs-on: ubuntu-latest
steps:
- name: Get source branch name
uses: haya14busa/action-cond@v1
id: branch_ref
with:
cond: ${{ github.event_name == 'pull_request' }}
if_true: ${{ github.head_ref }}
if_false: ${{ github.ref_name }}
- name: Checkout repository
uses: actions/checkout@v3
with:
ref: ${{ steps.branch_ref.outputs.value }}
fetch-depth: 1
- name: Cache node_modules
@ -73,9 +83,18 @@ jobs:
needs: Frontend
steps:
- name: Get source branch name
uses: haya14busa/action-cond@v1
id: branch_ref
with:
cond: ${{ github.event_name == 'pull_request' }}
if_true: ${{ github.head_ref }}
if_false: ${{ github.ref_name }}
- name: Checkout repository
uses: actions/checkout@v3
with:
ref: ${{ steps.branch_ref.outputs.value }}
fetch-depth: 1
- name: Set up Python 3.8