tools(deps): bump golang.org/x/net from 0.17.0 to 0.23.0 in /tools #69
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: Tools validation | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: [ '*' ] | |
paths: | |
- '.github/workflows/tools.yml' | |
- 'tools/*' | |
push: | |
branches: [ '*' ] | |
paths: | |
- '.github/workflows/tools.yml' | |
- 'tools/*' | |
tags: [ '!*' ] | |
jobs: | |
check: | |
name: Checking | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v4.1.2 | |
with: { fetch-depth: 0 } | |
- name: Set up Go environment | |
uses: actions/setup-go@v5.0.0 | |
with: { go-version: 1.22.x, cache-dependency-path: tools/go.sum } | |
- name: Install and check tools | |
run: make tools && [ $(ls bin/linux/*/* | wc -l) = $(grep go:gen tools/tools.go | wc -l) ] | |
- name: Check git state | |
run: make generate git-check | |
notify: | |
name: Notifying | |
needs: [ check ] | |
runs-on: ubuntu-latest | |
if: github.event_name != 'pull_request' && (failure() || success()) | |
steps: | |
- name: Send Slack notification | |
uses: rtCamp/action-slack-notify@v2.3.0 | |
env: | |
SLACK_COLOR: ${{ contains(needs.*.result, 'failure') && 'failure' || 'success' }} | |
SLACK_ICON: https://github.com/github.png?size=64 | |
SLACK_TITLE: 'π οΈ ${{ github.repository }}: ${{ github.workflow }}' | |
SLACK_USERNAME: GitHub Actions | |
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} |