Skip to content

Commit

Permalink
Update blank.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dsame authored Dec 27, 2023
1 parent c07521f commit cb056f0
Showing 1 changed file with 9 additions and 21 deletions.
30 changes: 9 additions & 21 deletions .github/workflows/blank.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,11 @@
name: CI

on:
push:
pull_request:

workflow_dispatch:
name: pre-install software in GHA runner

on: [push, workflow_dispatch]
env:
HOME: /home/runner/work/
jobs:
find-default-go:
name: 'Find default go version'
runs-on: windows-latest
outputs:
version: ${{ steps.goversion.outputs.version }}
steps:
- run: |
ls -la 'C:\hostedtoolcache\windows\go\'
ls -la "C:\hostedtoolcache\windows\go\*"
version=`go env GOVERSION|sed s/^go//`
echo "default go version: $version"
echo "version=$version" >> "$GITHUB_OUTPUT"
id: goversion
shell: bash
view-contexts:
runs-on: ubuntu-latest
steps:
- name: after setup Golang
run: go version

0 comments on commit cb056f0

Please sign in to comment.