Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #113 from jellyfin/fix/pipeline
Browse files Browse the repository at this point in the history
Added build (and no commit) on PR
  • Loading branch information
ThibaultNocchi authored Aug 31, 2021
2 parents 8566f9c + 1dc27c4 commit 7cec916
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/stable-generation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:

# "echo" in commit returns true so the build succeeds, even if no changed files
- name: Commit new changes to the repo
if: ${{ steps.diff.outputs.count }} > 0 && github.event_name != 'pull_request'
if: ${{ steps.diff.outputs.count > 0 && github.event_name != 'pull_request' }}
run: |
git config --global user.email "[email protected]"
git config --global user.name "Jellyfin Packaging Team"
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/unstable-generation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@ on:
schedule:
- cron: "10 0 * * *"
workflow_dispatch:
pull_request:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
ref: "master"

- name: Download OpenAPI file
run: curl -s https://api.jellyfin.org/openapi/jellyfin-openapi-unstable.json > openapi.json
Expand Down Expand Up @@ -71,9 +70,7 @@ jobs:
with:
node-version: 14
cache: "npm"
cache-dependency-path: |
stable/package-lock.json
unstable/package-lock.json
cache-dependency-path: unstable/package-lock.json

- name: Install dependencies
if: ${{ steps.diff.outputs.count }} > 0
Expand All @@ -87,7 +84,7 @@ jobs:

# "echo" in commit returns true so the build succeeds, even if no changed files
- name: Commit new changes to the repo
if: ${{ steps.diff.outputs.count }} > 0
if: ${{ steps.diff.outputs.count > 0 && github.event_name != 'pull_request' }}
run: |
git config --global user.email "[email protected]"
git config --global user.name "Jellyfin Packaging Team"
Expand Down

0 comments on commit 7cec916

Please sign in to comment.