Skip to content

Commit 7fee0b3

Browse files
committed
cd: fix nightly
1 parent bd76ee5 commit 7fee0b3

File tree

3 files changed

+14
-12
lines changed

3 files changed

+14
-12
lines changed

.github/workflows/check-date.yml

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: check-date
22

33
on:
44
workflow_dispatch:
5+
workflow_call:
56

67
jobs:
78
check_date:

.github/workflows/nightly.yml

+10-8
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,17 @@ name: nightly
33
on:
44
schedule:
55
- cron: "4 3 * * *"
6+
workflow_dispatch:
67
jobs:
8+
check-date:
9+
uses: ./.github/workflows/check-date.yml
710
nightly-publish-check:
811
name: Nightly publish check
912
runs-on: ubuntu-latest
10-
needs: check_date
11-
if: ${{ needs.check_date.outputs.should_run != 'false' }}
12-
steps:
13-
- name: Build and publish nightly
14-
uses: ./.github/workflows/release.yml
15-
secrets: inherit
16-
with:
17-
build_type: ${{ inputs.release_type == '' && 'nightly' || inputs.release_type }}
13+
needs: check-date
14+
if: ${{ needs.check-date.outputs.should_run != 'false' }}
15+
publish-nightly:
16+
name: Publish nightly
17+
runs-on: ubuntu-latest
18+
needs: nightly-publish-check
19+
uses: ./.github/workflows/release.yml

.github/workflows/release.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
- alpha
1313
- beta
1414
- production
15-
default: alpha
15+
default: none
1616
required: true
1717
release_type:
1818
type: choice
@@ -28,12 +28,11 @@ on:
2828
description: "Tag name for release"
2929
required: false
3030
default: nightly
31+
workflow_call:
3132

3233
jobs:
3334
build:
3435
name: Build Signed APK
35-
needs: check_date
36-
if: ${{ inputs.release_type != 'none' && (needs.check_date.outputs.should_run != 'false' && ) }}
3736
runs-on: ubuntu-latest
3837

3938
env:
@@ -48,7 +47,7 @@ jobs:
4847
GH_REPO: ${{ github.repository }}
4948

5049
steps:
51-
- uses: actions/checkout@v4
50+
- uses: actions/checkout@4
5251
- name: Set up JDK 17
5352
uses: actions/setup-java@v4
5453
with:

0 commit comments

Comments
 (0)