Skip to content

Commit

Permalink
Programmatically get current year.
Browse files Browse the repository at this point in the history
Only release on 3.x branch.
  • Loading branch information
rumboalla committed Mar 28, 2024
1 parent 72ef107 commit 0df0554
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:

- name: Create Release
uses: softprops/action-gh-release@v2
if: ${{ env.BRANCH }} == "3.x"
if: github.ref == 'refs/heads/3.x'
with:
tag_name: 0.0.${{ github.run_number }}-ci
name: CI-Release-${{ env.BRANCH }}-${{ github.run_number }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ import com.apkupdater.ui.theme.statusBarColor
import com.apkupdater.util.isAndroidTv
import com.apkupdater.viewmodel.SettingsViewModel
import org.koin.androidx.compose.koinViewModel
import java.util.Calendar


@Composable
Expand All @@ -78,7 +79,7 @@ fun About() = LazyColumn(
LoadingImageApp(BuildConfig.APPLICATION_ID)
LargeTitle(stringResource(R.string.app_name), Modifier.align(CenterHorizontally))
MediumText("${BuildConfig.VERSION_NAME} (${BuildConfig.VERSION_CODE})", Modifier.align(CenterHorizontally))
MediumText("Copyright © 2016-2023 rumboalla", Modifier.align(CenterHorizontally))
MediumText("Copyright © 2016-${Calendar.getInstance().get(Calendar.YEAR)} rumboalla", Modifier.align(CenterHorizontally))
}
}
item {
Expand Down

0 comments on commit 0df0554

Please sign in to comment.