Skip to content

Go Check Versions

Go Check Versions #19

---
name: Go Check Versions
on:
schedule:
- cron: "0 0 * * 0"
workflow_dispatch:
permissions: {}
defaults:
run:
working-directory: aws-cli
jobs:
go-check-versions:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
fetch-depth: 1
persist-credentials: false
- name: Set up Go
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
with:
go-version: "stable"
check-latest: true
- name: Check outdated dependencies
shell: bash
run: |
set -euo pipefail
IFS=$'\n\t'
go get -u ./...
go mod tidy
if ! git diff --exit-code go.mod go.sum; then
exit 1
fi