cd: fix nightly
This commit is contained in:
parent
bd76ee5392
commit
7fee0b3768
|
@ -2,6 +2,7 @@ name: check-date
|
|||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
workflow_call:
|
||||
|
||||
jobs:
|
||||
check_date:
|
||||
|
|
|
@ -3,15 +3,17 @@ name: nightly
|
|||
on:
|
||||
schedule:
|
||||
- cron: "4 3 * * *"
|
||||
workflow_dispatch:
|
||||
jobs:
|
||||
check-date:
|
||||
uses: ./.github/workflows/check-date.yml
|
||||
nightly-publish-check:
|
||||
name: Nightly publish check
|
||||
runs-on: ubuntu-latest
|
||||
needs: check_date
|
||||
if: ${{ needs.check_date.outputs.should_run != 'false' }}
|
||||
steps:
|
||||
- name: Build and publish nightly
|
||||
uses: ./.github/workflows/release.yml
|
||||
secrets: inherit
|
||||
with:
|
||||
build_type: ${{ inputs.release_type == '' && 'nightly' || inputs.release_type }}
|
||||
needs: check-date
|
||||
if: ${{ needs.check-date.outputs.should_run != 'false' }}
|
||||
publish-nightly:
|
||||
name: Publish nightly
|
||||
runs-on: ubuntu-latest
|
||||
needs: nightly-publish-check
|
||||
uses: ./.github/workflows/release.yml
|
||||
|
|
|
@ -12,7 +12,7 @@ on:
|
|||
- alpha
|
||||
- beta
|
||||
- production
|
||||
default: alpha
|
||||
default: none
|
||||
required: true
|
||||
release_type:
|
||||
type: choice
|
||||
|
@ -28,12 +28,11 @@ on:
|
|||
description: "Tag name for release"
|
||||
required: false
|
||||
default: nightly
|
||||
workflow_call:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build Signed APK
|
||||
needs: check_date
|
||||
if: ${{ inputs.release_type != 'none' && (needs.check_date.outputs.should_run != 'false' && ) }}
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
env:
|
||||
|
@ -48,7 +47,7 @@ jobs:
|
|||
GH_REPO: ${{ github.repository }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@4
|
||||
- name: Set up JDK 17
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
|
|
Loading…
Reference in New Issue