Skip to content

Commit

Permalink
.github: nightly job to verify if toolchain directives are in sync
Browse files Browse the repository at this point in the history
Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
  • Loading branch information
MadhavJivrajani committed Apr 25, 2024
1 parent 840cb52 commit a260bce
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/toolchain-directive-nightly.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: Go Toolchain Directive Nightly
permissions: read-all
on:
schedule:
- cron: '25 9 * * *' # runs every day at 09:25 UTC

# workflow_dispatch enables manual testing of this job by maintainers
workflow_dispatch:

jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- id: goversion
run: echo "goversion=$(cat .go-version)" >> "$GITHUB_OUTPUT"
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: ${{ steps.goversion.outputs.goversion }}
- id: verifytoolchain
run: scripts/verify_toolchain_directive.sh

0 comments on commit a260bce

Please sign in to comment.