Skip to content

Commit

Permalink
fix: adds version
Browse files Browse the repository at this point in the history
  • Loading branch information
jbottigliero authored Mar 15, 2024
1 parent 185e500 commit f715101
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/static-version-watch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ jobs:
version
} = staticConfig._static;
// If there isn't a version, the respository is always using the default branch
if (!version) return null;
if (!version) {
console.log("No version found in static.json");
return;
};
let nextVersion = null;
try {
nextVersion = parseInt(version.split(".")[0].replace("v", "")) + 1;
Expand Down
3 changes: 2 additions & 1 deletion static.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"_static": {
"generator": "from-static/static-resume"
"generator": "from-static/static-resume",
"version": "v1"
},
"metadata": {
"title": "Resume | Jane Doe",
Expand Down

0 comments on commit f715101

Please sign in to comment.