File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 88# Used in CI when a new is release is creted to comment it.
99def 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
2325if __name__ == "__main__" :
2426 project_path = sys .argv [1 ]
Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments