1
0
Fork 0
mirror of https://github.com/actions/setup-go synced 2024-12-22 14:22:41 +00:00

Fix yaml indent (#59)

This commit is contained in:
Masahiro Furudate 2021-11-08 19:28:08 +09:00 committed by GitHub
parent 5805cf725b
commit 02f7ea9f09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 47 additions and 45 deletions

View file

@ -65,10 +65,12 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: setup-go ${{ matrix.go }} - name: setup-go ${{ matrix.go }}
uses: ./ uses: ./
with: with:
go-version: ${{ matrix.go }} go-version: ${{ matrix.go }}
- name: verify go - name: verify go
run: __tests__/verify-go.sh ${{ matrix.go }} run: __tests__/verify-go.sh ${{ matrix.go }}
shell: bash shell: bash

View file

@ -24,22 +24,22 @@ It will first check the local cache for a version match. If version is not found
Matching by semver spec: Matching by semver spec:
```yaml ```yaml
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions/setup-go@v2 - uses: actions/setup-go@v2
with: with:
go-version: '^1.13.1' # The Go version to download (if necessary) and use. go-version: '^1.13.1' # The Go version to download (if necessary) and use.
- run: go version - run: go version
``` ```
Matching an unstable pre-release: Matching an unstable pre-release:
```yaml ```yaml
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions/setup-go@v2 - uses: actions/setup-go@v2
with: with:
stable: 'false' stable: 'false'
go-version: '1.14.0-rc1' # The Go version to download (if necessary) and use. go-version: '1.14.0-rc1' # The Go version to download (if necessary) and use.
- run: go version - run: go version
``` ```
# Usage # Usage
@ -49,11 +49,11 @@ See [action.yml](action.yml)
Basic: Basic:
```yaml ```yaml
steps: steps:
- uses: actions/checkout@master - uses: actions/checkout@master
- uses: actions/setup-go@v2 - uses: actions/setup-go@v2
with: with:
go-version: '1.9.3' # The Go version to download (if necessary) and use. go-version: '1.9.3' # The Go version to download (if necessary) and use.
- run: go run hello.go - run: go run hello.go
``` ```
Matrix Testing: Matrix Testing: