Skip to content

Commit

Permalink
Merge pull request #170 from Lionk-Framework/151-rework-workflow-to-p…
Browse files Browse the repository at this point in the history
…ublish-on-nugetorg

fix read file
  • Loading branch information
AlexandreIorio authored Aug 12, 2024
2 parents 05454d5 + abb2f29 commit 9ee1bee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/scripts/nuget_scripts/publish_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@ def run_command(command):
sys.exit(1)

def read_file_to_list(filename):
with open(filename, 'r') as file:
return [line.strip() for line in file.readlines()]
try:
with open(filename, 'r') as file:
return file.read().strip().split()
except FileNotFoundError:
print(f"File not found: {filename}")
sys.exit(1)

bot_name = os.getenv('BOT_NAME')
bot_mail = os.getenv('BOT_MAIL')
Expand Down
2 changes: 1 addition & 1 deletion src/Lib/Lionk.Logger/Lionk.Logger.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<PackageReadmeFile>README.md</PackageReadmeFile>
<Version>1.0.0</Version>
<Version>1.1.0</Version>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 9ee1bee

Please sign in to comment.