Skip to content

Commit

Permalink
run android build only nightly and if changed
Browse files Browse the repository at this point in the history
  • Loading branch information
newhinton committed Oct 20, 2023
1 parent e6b2f16 commit 1d89b73
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,19 @@ name: Android CI

on:
workflow_dispatch:
push:
branches:
- 'master'
pull_request:
branches-ignore:
- 'master'

schedule:
- cron: '0 22 * * *' # run at 0:00 GMT+2

jobs:
hasChanged:
continue-on-error: true
name: Verify that changes have occured in the last 24h
if: ${{ github.event_name == 'schedule' }}
run: test -z $(git rev-list --after="24 hours" ${{ github.sha }}) && echo "::set-output name=hasChanged::false"

createArtifacts:
needs: hasChanged
if: ${{ needs.hasChanged.outputs.hasChanged != 'false' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
)](https://github.com/newhinton/Round-Sync/releases) [![GitHub release](https://img.shields.io/github/v/release/newhinton/Round-Sync?include_prereleases)](https://github.com/newhinton/Round-Sync/releases/latest)
[![Documentation](https://img.shields.io/badge/Documentation-roundsync.com-4aad4e)](https://roundsync.com) [![supportive flags](https://img.shields.io/badge/support-🇺🇦_🏳️‍⚧_🏳️‍🌈-4aad4e)](https://roundsync.com)

[![Android Lint](https://github.com/newhinton/Round-Sync/actions/workflows/lint.yml/badge.svg)](https://github.com/newhinton/Round-Sync/actions/workflows/lint.yml)
-----------
A cloud file manager, powered by rclone.
Visit [https://roundsync.com](https://roundsync.com) for more information!
Expand Down

0 comments on commit 1d89b73

Please sign in to comment.