Skip to content

Commit

Permalink
Update action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
galargh authored May 22, 2024
1 parent 6e469c7 commit 3075f4a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/actions/read-go-mod/action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: read go.mod
description: Reads go.mod

inputs:
working-directory:
description: Specifies the working directory where the command is run.
required: false

outputs:
json:
description: JSON representation of go.mod
Expand All @@ -22,4 +27,5 @@ runs:
echo "No go.mod file found in $PWD."
echo "json={}" | tee -a $GITHUB_OUTPUT
fi
working-directory: ${{ inputs.working-directory || github.workspace }}
shell: bash

0 comments on commit 3075f4a

Please sign in to comment.