Skip to content

Commit

Permalink
backport of commit 6494aa0
Browse files Browse the repository at this point in the history
  • Loading branch information
alisdair committed May 13, 2022
1 parent 378ee6a commit 874b56a
Show file tree
Hide file tree
Showing 398 changed files with 16,386 additions and 3,301 deletions.
200 changes: 0 additions & 200 deletions .circleci/config.yml

This file was deleted.

23 changes: 23 additions & 0 deletions .github/actions/go-version/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: 'Determine Go Toolchain Version'
description: 'Uses the .go-version file to determine which Go toolchain to use for any Go-related actions downstream.'
outputs:
version:
description: "Go toolchain version"
value: ${{ steps.go.outputs.version }}
runs:
using: "composite"
steps:
# We use goenv to make sure we're always using the same Go version we'd
# use for releases, as recorded in the .go-version file.
- name: "Determine Go version"
id: go
shell: bash
# We use .go-version as our source of truth for current Go
# version, because "goenv" can react to it automatically.
# However, we don't actually use goenv for our automated
# steps in GitHub Actions, because it's primarily for
# interactive use in shells and makes things unnecessarily
# complex for automation.
run: |
echo "Building with Go $(cat .go-version)"
echo "::set-output name=version::$(cat .go-version)"

0 comments on commit 874b56a

Please sign in to comment.