mirror of
https://github.com/actions/setup-go.git
synced 2026-09-19 10:51:29 +00:00
Expose go env variables as action outputs (#791)
* feature implementation - output go env * update action.yml * fix action.yml --------- Co-authored-by: mahabaleshwars <147705296+mahabaleshwars@users.noreply.github.com>
This commit is contained in:
co-authored by
mahabaleshwars
parent
468e940882
commit
e626ada899
@@ -43,6 +43,31 @@ jobs:
|
||||
- name: Verify Go
|
||||
run: go version
|
||||
|
||||
go-env-outputs:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
- name: Setup Go
|
||||
id: setup-go
|
||||
uses: ./
|
||||
with:
|
||||
go-version: stable
|
||||
- name: Show Go environment outputs
|
||||
run: |
|
||||
echo "go-path: ${{ steps.setup-go.outputs.go-path }}"
|
||||
echo "go-bin: ${{ steps.setup-go.outputs.go-bin }}"
|
||||
echo "go-bin-path: ${{ steps.setup-go.outputs.go-bin-path }}"
|
||||
echo "go-root: ${{ steps.setup-go.outputs.go-root }}"
|
||||
echo "go-cache: ${{ steps.setup-go.outputs.go-cache }}"
|
||||
echo "go-mod-cache: ${{ steps.setup-go.outputs.go-mod-cache }}"
|
||||
echo "go-os: ${{ steps.setup-go.outputs.go-os }}"
|
||||
echo "go-arch: ${{ steps.setup-go.outputs.go-arch }}"
|
||||
echo "go-tool-dir: ${{ steps.setup-go.outputs.go-tool-dir }}"
|
||||
|
||||
aliases-arch:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
|
||||
Reference in New Issue
Block a user