Skip to content

Commit

Permalink
Update .github/workflows/get-environment.yml
Browse files Browse the repository at this point in the history
Co-authored-by: Kevin Duret <[email protected]>
  • Loading branch information
mushroomempires and kduret authored Jan 16, 2025
1 parent 1ca02fa commit 2a20ee4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/get-environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,8 @@ jobs:
throw new Error('invalid version');
}
} else {
version = new Date().toLocaleTimeString('en-US', { hour12: false }).replaceAll(":","")
const currentDate = new Date();
version = `${currentDate.getFullYear()}${("0" + (currentDate.getMonth() + 1)).slice(-2)}00`;
}
core.setOutput('version', version);
Expand Down

0 comments on commit 2a20ee4

Please sign in to comment.