Skip to content

Commit

Permalink
added output to file
Browse files Browse the repository at this point in the history
  • Loading branch information
Groovy Sky committed Mar 11, 2023
1 parent ecaef56 commit 3d085c2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/generate_report_w_gmuv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ jobs:
- uses: actions/checkout@v3

- name: Generate report for a test repository
uses: groovy-sky/[email protected].0
uses: groovy-sky/[email protected].1
with:
account: 'groovy-sky'
repository: 'aaa'
filename: 'aaa_report.md'

- name: Publishing the changes
run: ls
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ inputs:
repository:
description: "Github's repository name"
required: true
filename:
description: "Report's filename"
required: false
outputs:
result:
description: "Output"
Expand Down
8 changes: 6 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,9 @@ if [ -z "${INPUT_REPOSITORY}" ]; then
echo "Repository is empty."
fi


/gmuv -u "${INPUT_ACCOUNT}" -r "${INPUT_REPOSITORY}" -o cli
if [ -z "${INPUT_FILENAME}" ]
then
/gmuv -u "${INPUT_ACCOUNT}" -r "${INPUT_REPOSITORY}" -o cli
else
/gmuv -u "${INPUT_ACCOUNT}" -r "${INPUT_REPOSITORY}" -o file -f "${INPUT_FILENAME}"
fi

0 comments on commit 3d085c2

Please sign in to comment.