Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
BattleCh1cken committed May 8, 2024
1 parent 24dd582 commit 646536f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ jobs:
uses: ./action/
with:
repository: LemLib/LemLib
library-name: lemlib
library-name: LemLib
8 changes: 6 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@ runs:
echo "postfix=$postfix" >> "$GITHUB_OUTPUT"
echo "Postfix found: $postfix"
name="${{inputs.library-name}}@$postfix"
library_name=$(awk -F'=' '/^LIBNAME:=/{print $2}' Makefile)
echo "library_name=$library_name" >> "$GITHUB_OUTPUT"
echo "Library name found: $library_name"
name="$library_name@$postfix"
echo "name=$name" >> "$GITHUB_OUTPUT"
echo "Name found: $name"
Expand Down Expand Up @@ -111,7 +115,7 @@ runs:
cp {LICENSE,README.md} template/include/"${{inputs.library-name}}"/
echo "\n## [Github link](${{github.server_url}}/${{github.repository}})" >> template/include/"${{inputs.library-name}}"/README.md
perl -i -pe 's@(?<=[^/])(docs/assets/.*?)(?=[")])@${{github.server_url}}/${{github.repository}}/blob/master/$1?raw=true@g' template/include/"${{inputs.library-name}}"/README.md
echo $POSTFIX >> template/include/lemlib/VERSION
echo ${{steps.project-info.outputs.postfix}} >> template/include/${{inputs.library-name}}/VERSION
- name: Unzip Template
if: ${{ steps.template.outputs.template == 1 && inputs.library-name != null }}
Expand Down

0 comments on commit 646536f

Please sign in to comment.