Skip to content

Commit 266886c

Browse files
authored
Fix bug
1 parent beca553 commit 266886c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/list-versions.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
# Used in CI when a new is release is creted to comment it.
99
def listVersions(source_path):
1010
recipes = glob.glob(source_path + '/**/package.py', recursive=True)
11-
with open(source_path + '/recipes.md', 'w') as md:
11+
file_name = source_path + '/recipes.md'
12+
with open(file_name, 'w') as md:
1213
md.write('**Below the last version of products contained in Spack recipes for this release.**\n')
1314
md.write('| Product | Version |\n')
1415
md.write('| ------- | ------- |\n')
@@ -19,6 +20,7 @@ def listVersions(source_path):
1920
version = re.search("version\([\'\"]([0-9]+(\.[0-9]+)*)[\'\"]", line)
2021
version_name = 'undefined' if version is None else version.group(1)
2122
md.write('| ' + product_name + ' | ' + version_name + ' |\n')
23+
print("File created:", file_name)
2224

2325
if __name__ == "__main__":
2426
project_path = sys.argv[1]

.github/workflows/make-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Create a release
2727
uses: softprops/action-gh-release@v1
2828
with:
29-
body_path: $GITHUB_WORKSPACE/recipes.md
29+
body_path: ${{ github.workspace }}/recipes.md
3030
env:
3131
USERNAME: ${{ github.actor }}
3232
PASSWORD: ${{ github.token }}

0 commit comments

Comments
 (0)