Skip to content

Commit c3d25e3

Browse files
authored
Merge pull request #86 from codemonkey85/dev
Update workflow, fix job date / time
2 parents 0802400 + 8f24d7f commit c3d25e3

4 files changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/buildandtest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828

2929
# sets up .NET SDK
3030
- name: Setup .NET
31-
uses: actions/setup-dotnet@v4.3.1
31+
uses: actions/setup-dotnet@v5.0.0
3232
with:
3333
global-json-file: ./global.json
3434

.github/workflows/main_aboutcodemonkey85.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525

2626
# sets up .NET SDK
2727
- name: Setup .NET
28-
uses: actions/setup-dotnet@v4.3.1
28+
uses: actions/setup-dotnet@v5.0.0
2929
with:
3030
global-json-file: ./global.json
3131

AboutMe/Wasm/Pages/Resume.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
</MudText>
9292
}
9393
<MudText Typo="@Typo.body2">
94-
@job.TimeAtJobString
94+
@job.DatesString
9595
</MudText>
9696
</MudStack>
9797
</MudCardHeader>

AboutMe/Wasm/Pages/Resume.razor.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,9 @@ private readonly record struct Job
470470

471471
public string TimeAtJobString =>
472472
TimeAtJob.Humanize(precision: 2, maxUnit: TimeUnit.Year, minUnit: TimeUnit.Month);
473+
474+
public string DatesString =>
475+
$"{StartDate:MMM yyyy} - {(EndDate is null ? "Present" : $"{EndDate:MMM yyyy}")} ({TimeAtJobString})";
473476
}
474477

475478
private readonly record struct Duty

0 commit comments

Comments
 (0)