Skip to content

Commit

Permalink
cd: fix nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
zaneschepke committed Sep 20, 2024
1 parent bd76ee5 commit 73375c7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
1 change: 1 addition & 0 deletions .github/workflows/check-date.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: check-date

on:
workflow_dispatch:
workflow_call:

jobs:
check_date:
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,18 @@ 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' }}
needs: check-date
if: ${{ needs.check-date.outputs.should_run != 'false' }}
steps:
- uses: actions/checkout@v4
- name: Build and publish nightly
uses: ./.github/workflows/release.yml
secrets: inherit
with:
build_type: ${{ inputs.release_type == '' && 'nightly' || inputs.release_type }}
7 changes: 3 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
- alpha
- beta
- production
default: alpha
default: none
required: true
release_type:
type: choice
Expand All @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 73375c7

Please sign in to comment.