Skip to content

Commit

Permalink
no log: fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
morpheus65535 committed Aug 4, 2023
1 parent 64af56c commit ec2d10f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
- frontend/**
- bazarr/**
- libs/**
- migrations/**
- bazarr.py
- requirements.txt
- dev-requirements.txt
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ec2d10f

Please sign in to comment.