diff options
author | morpheus65535 <[email protected]> | 2023-08-04 10:27:36 -0400 |
---|---|---|
committer | morpheus65535 <[email protected]> | 2023-08-04 10:27:36 -0400 |
commit | bc794914912e873d49805235ff4789c9da0a934f (patch) | |
tree | f4cb2689865d30277ba63a26bce997f396e69eec /.github | |
parent | 6000a8889d96364eddda87035e83e6c79c65a035 (diff) | |
download | bazarr-bc794914912e873d49805235ff4789c9da0a934f.tar.gz bazarr-bc794914912e873d49805235ff4789c9da0a934f.zip |
no log: fix CI
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/ci.yml | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 71e5b2d83..b85c9403c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,6 +7,7 @@ on: - frontend/** - bazarr/** - libs/** + - migrations/** - bazarr.py - requirements.txt - dev-requirements.txt @@ -22,10 +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: Checkout repository uses: actions/checkout@v3 with: - ref: ${{ github.ref }} + ref: ${{ steps.branch_ref.outputs.value }} fetch-depth: 1 - name: Cache node_modules @@ -74,10 +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: Checkout repository uses: actions/checkout@v3 with: - ref: ${{ github.ref }} + ref: ${{ steps.branch_ref.outputs.value }} fetch-depth: 1 - name: Set up Python 3.8 |