mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-22 13:22:28 +00:00
Compare commits
3 Commits
7dcc768f1b
...
c354736392
Author | SHA1 | Date | |
---|---|---|---|
|
c354736392 | ||
|
696110eae5 | ||
|
54a7a5069c |
19
.github/release.yml
vendored
19
.github/release.yml
vendored
|
@ -1,20 +1,23 @@
|
|||
changelog:
|
||||
categories:
|
||||
- title: '🚀 Features'
|
||||
labels:
|
||||
- 'feature'
|
||||
- 'enhancement'
|
||||
label: 'enhancement'
|
||||
- title: '🐛 Bug Fixes'
|
||||
labels:
|
||||
- 'fix'
|
||||
- 'bugfix'
|
||||
- 'bug'
|
||||
label: 'bug'
|
||||
- title: '⚙️ Refactoring'
|
||||
label: 'refactor'
|
||||
- title: '🧩 UI/UX'
|
||||
label: 'UI/UX'
|
||||
- title: '📚 Documentation'
|
||||
label: 'documentation'
|
||||
- title: '🔒 Security'
|
||||
label: 'security'
|
||||
- title: '🧰 GitHub Actions'
|
||||
label: 'github actions'
|
||||
label: 'github_actions'
|
||||
- title: '🦀 Rust'
|
||||
label: 'rust'
|
||||
- title: '📃 Scripting'
|
||||
label: 'script'
|
||||
exclude:
|
||||
labels:
|
||||
- 'skip-changelog'
|
|
@ -1,7 +1,14 @@
|
|||
use chrono::{TimeZone, Utc};
|
||||
use std::env;
|
||||
|
||||
fn main() {
|
||||
// Add current date as a variable to be displayed in the 'Linux Toolbox' text.
|
||||
let now = match env::var("SOURCE_DATE_EPOCH") {
|
||||
Ok(val) => { Utc.timestamp_opt(val.parse::<i64>().unwrap(), 0).unwrap() }
|
||||
Err(_) => Utc::now(),
|
||||
};
|
||||
println!(
|
||||
"cargo:rustc-env=BUILD_DATE={}",
|
||||
chrono::Local::now().format("%Y-%m-%d")
|
||||
now.format("%Y-%m-%d")
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user