From db3744afcdc150eee66e0ced4e971f24d87c58c3 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Mon, 4 Mar 2024 00:33:46 -0500 Subject: Add default inputs.version of master Will allow unstable builds to run on a schedule. --- .github/workflows/release-build.yaml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/release-build.yaml b/.github/workflows/release-build.yaml index b5c023b..b174444 100644 --- a/.github/workflows/release-build.yaml +++ b/.github/workflows/release-build.yaml @@ -19,7 +19,7 @@ jobs: - name: "Set dated version for unstable builds" id: version run: |- - if grep --silent --extended-regexp '^v[0-9]+' <<< "${{ inputs.version }}"; then + if grep --silent --extended-regexp '^v[0-9]+' <<< "${{ inputs.version || 'master' }}"; then echo "JELLYFIN_VERSION=${{ inputs.version }}" >> $GITHUB_ENV echo "JELLYFIN_RELEASE_TYPE=stable" >> $GITHUB_ENV else @@ -36,7 +36,7 @@ jobs: - name: "Prepare repository" run: |- - ./checkout.py ${{ inputs.version }} + ./checkout.py ${{ inputs.version || 'master' }} - name: "Run builder for Docker containers" env: @@ -63,7 +63,7 @@ jobs: - name: "Set dated version for unstable builds" id: version run: |- - if grep --silent --extended-regexp '^v[0-9]+' <<< "${{ inputs.version }}"; then + if grep --silent --extended-regexp '^v[0-9]+' <<< "${{ inputs.version || 'master' }}"; then echo "JELLYFIN_VERSION=${{ inputs.version }}" >> $GITHUB_ENV echo "JELLYFIN_RELEASE_TYPE=stable" >> $GITHUB_ENV else @@ -80,7 +80,7 @@ jobs: - name: "Prepare repository" run: |- - ./checkout.py ${{ inputs.version }} + ./checkout.py ${{ inputs.version || 'master' }} - name: "Run builder for ${{ matrix.version }} ${{ matrix.arch }}" run: |- @@ -156,7 +156,7 @@ jobs: - name: "Set dated version for unstable builds" id: version run: |- - if grep --silent --extended-regexp '^v[0-9]+' <<< "${{ inputs.version }}"; then + if grep --silent --extended-regexp '^v[0-9]+' <<< "${{ inputs.version || 'master' }}"; then echo "JELLYFIN_VERSION=${{ inputs.version }}" >> $GITHUB_ENV echo "JELLYFIN_RELEASE_TYPE=stable" >> $GITHUB_ENV else @@ -173,7 +173,7 @@ jobs: - name: "Prepare repository" run: |- - ./checkout.py ${{ inputs.version }} + ./checkout.py ${{ inputs.version || 'master' }} - name: "Run builder for ${{ matrix.version }} ${{ matrix.arch }}" run: |- @@ -247,7 +247,7 @@ jobs: - name: "Set dated version for unstable builds" id: version run: |- - if grep --silent --extended-regexp '^v[0-9]+' <<< "${{ inputs.version }}"; then + if grep --silent --extended-regexp '^v[0-9]+' <<< "${{ inputs.version || 'master' }}"; then echo "JELLYFIN_VERSION=${{ inputs.version }}" >> $GITHUB_ENV echo "JELLYFIN_RELEASE_TYPE=stable" >> $GITHUB_ENV else @@ -264,7 +264,7 @@ jobs: - name: "Prepare repository" run: |- - ./checkout.py ${{ inputs.version }} + ./checkout.py ${{ inputs.version || 'master' }} - name: "Run builder for ${{ matrix.arch }}" run: |- @@ -311,7 +311,7 @@ jobs: - name: "Set dated version for unstable builds" id: version run: |- - if grep --silent --extended-regexp '^v[0-9]+' <<< "${{ inputs.version }}"; then + if grep --silent --extended-regexp '^v[0-9]+' <<< "${{ inputs.version || 'master' }}"; then echo "JELLYFIN_VERSION=${{ inputs.version }}" >> $GITHUB_ENV echo "JELLYFIN_RELEASE_TYPE=stable" >> $GITHUB_ENV else @@ -328,7 +328,7 @@ jobs: - name: "Prepare repository" run: |- - ./checkout.py ${{ inputs.version }} + ./checkout.py ${{ inputs.version || 'master' }} - name: "Run builder for ${{ matrix.arch }}" run: |- @@ -375,7 +375,7 @@ jobs: - name: "Set dated version for unstable builds" id: version run: |- - if grep --silent --extended-regexp '^v[0-9]+' <<< "${{ inputs.version }}"; then + if grep --silent --extended-regexp '^v[0-9]+' <<< "${{ inputs.version || 'master' }}"; then echo "JELLYFIN_VERSION=${{ inputs.version }}" >> $GITHUB_ENV echo "JELLYFIN_RELEASE_TYPE=stable" >> $GITHUB_ENV else @@ -392,7 +392,7 @@ jobs: - name: "Prepare repository" run: |- - ./checkout.py ${{ inputs.version }} + ./checkout.py ${{ inputs.version || 'master' }} - name: "Run builder for ${{ matrix.version }} ${{ matrix.arch }}" run: |- @@ -434,7 +434,7 @@ jobs: - name: "Set dated version for unstable builds" id: version run: |- - if grep --silent --extended-regexp '^v[0-9]+' <<< "${{ inputs.version }}"; then + if grep --silent --extended-regexp '^v[0-9]+' <<< "${{ inputs.version || 'master' }}"; then echo "JELLYFIN_VERSION=${{ inputs.version }}" >> $GITHUB_ENV echo "JELLYFIN_RELEASE_TYPE=stable" >> $GITHUB_ENV else @@ -451,7 +451,7 @@ jobs: - name: "Prepare repository" run: |- - ./checkout.py ${{ inputs.version }} + ./checkout.py ${{ inputs.version || 'master' }} - name: "Run builder for Portable" run: |- -- cgit