fix: nightly release
This commit is contained in:
parent
960af02beb
commit
d2e5d6d3bc
|
@ -33,25 +33,23 @@ on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check_date:
|
check-commits:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: Check latest commit
|
|
||||||
outputs:
|
outputs:
|
||||||
should_run: ${{ steps.should_run.outputs.should_run }}
|
has_new_commits: ${{ steps.commits_check.outputs.has-new-commits }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Checkout repository
|
||||||
- name: print latest_commit
|
uses: actions/checkout@v2
|
||||||
run: echo ${{ github.sha }}
|
with:
|
||||||
- id: should_run
|
fetch-depth: 0 # Fetch all history for all branches and tags
|
||||||
continue-on-error: true
|
- name: Check for commits in the last 23 hours
|
||||||
name: check latest commit is less than a day
|
id: commits_check
|
||||||
if: ${{ github.event_name == 'schedule' }}
|
run: |
|
||||||
run: test -z $(git rev-list --after="23 hours" ${{ github.sha }}) && echo "::set-output name=should_run::false"
|
commits=$(git rev-list --after="23 hours" HEAD --count)
|
||||||
|
echo "::set-output name=has-new-commits::$(($commits > 0))"
|
||||||
build:
|
build:
|
||||||
needs: check_date
|
needs: check-commits
|
||||||
if: |
|
if: ${{ needs.check-commits.outputs.has_new_commits == 'true' || github.event_name != 'schedule' }}
|
||||||
github.event_name != 'schedule' ||
|
|
||||||
(needs.check_date.outputs.should_run == 'true' && github.event_name == 'schedule')
|
|
||||||
name: Build Signed APK
|
name: Build Signed APK
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
|
|
|
@ -88,7 +88,7 @@ fun TunnelRowItem(
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
isExpanded = expanded && isActive,
|
isExpanded = expanded && isActive,
|
||||||
expanded = { if (isActive && expanded) TunnelStatisticsBox(vpnState.statistics, tunnel) },
|
expanded = { if (isActive && expanded) TunnelStatisticsRow(vpnState.statistics, tunnel) },
|
||||||
focusRequester = focusRequester,
|
focusRequester = focusRequester,
|
||||||
trailing = {
|
trailing = {
|
||||||
if (
|
if (
|
||||||
|
|
|
@ -19,7 +19,7 @@ import com.zaneschepke.wireguardautotunnel.util.NumberUtils
|
||||||
import com.zaneschepke.wireguardautotunnel.util.extensions.toThreeDecimalPlaceString
|
import com.zaneschepke.wireguardautotunnel.util.extensions.toThreeDecimalPlaceString
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
fun TunnelStatisticsBox(statistics: TunnelStatistics?, tunnelConfig: TunnelConfig) {
|
fun TunnelStatisticsRow(statistics: TunnelStatistics?, tunnelConfig: TunnelConfig) {
|
||||||
val config = TunnelConfig.configFromAmQuick(tunnelConfig.wgQuick)
|
val config = TunnelConfig.configFromAmQuick(tunnelConfig.wgQuick)
|
||||||
|
|
||||||
Row(
|
Row(
|
Loading…
Reference in New Issue