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

Commit

Permalink
Added build (and no commit) on PR
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaultNocchi committed Aug 31, 2021
1 parent c43bb3a commit bcb3197
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/stable-generation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@ on:
schedule:
- cron: "0 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-stable.json > openapi.json
Expand Down Expand Up @@ -57,9 +56,7 @@ jobs:
with:
node-version: 14
cache: "npm"
cache-dependency-path: |
stable/package-lock.json
unstable/package-lock.json
cache-dependency-path: stable/package-lock.json

- name: Install dependencies
if: ${{ steps.diff.outputs.count }} > 0
Expand All @@ -73,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
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 bcb3197

Please sign in to comment.