Daily Go Check #491
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Daily Go Check | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 8 * * *" # every day at 8AM UTC | |
jobs: | |
check-go-version: | |
if: github.repository_owner == 'go-nv' | |
strategy: | |
matrix: | |
os: ["ubuntu-latest"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
ref: master | |
token: ${{ secrets.GH_TOKEN }} | |
- name: Install JQ | |
run: sudo apt install jq | |
- name: Remove golang | |
run: sudo rm -rf $(which go) | |
- name: Add goenv to PATH | |
run: export PATH="$PATH:./bin/goenv" | |
- name: Check latest version of Go against Goenv | |
run: ./scripts/latest_version.sh | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} |