Skip to content

ci/cd(deps): bump actions/checkout from 3 to 4 #35

ci/cd(deps): bump actions/checkout from 3 to 4

ci/cd(deps): bump actions/checkout from 3 to 4 #35

Workflow file for this run

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
with: { fetch-depth: 0 }
- name: Set up Go environment
uses: actions/setup-go@v4
with: { go-version: 1.20.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
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 }}