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