Skip to content

Commit

Permalink
fixup: Update action to use github.workspace and inline the script
Browse files Browse the repository at this point in the history
  • Loading branch information
marun committed May 1, 2024
1 parent 5984e25 commit b88b535
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 deletions.
6 changes: 5 additions & 1 deletion .github/actions/set-go-version-in-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,9 @@ runs:
using: composite
steps:
- name: Set the project Go version in the environment
run: .github/actions/set-go-version-in-env/go_version_env.sh >> $GITHUB_ENV
# sed works in all environments but `go list -m -f '{{.GoVersion}}'` should be preferred
# outside of CI when go is already installed.
run: |
cd ${{ github.workspace }}
echo GO_VERSION="~$(sed -n -e 's/^go //p' go.mod)" >> $GITHUB_ENV
shell: bash
14 changes: 0 additions & 14 deletions .github/actions/set-go-version-in-env/go_version_env.sh

This file was deleted.

0 comments on commit b88b535

Please sign in to comment.