This repository has been archived by the owner on Aug 27, 2024. It is now read-only.
chore(deps): bump github.com/spf13/viper from 1.16.0 to 1.17.0 #145
Workflow file for this run
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: Pre-Commit | |
on: | |
pull_request: | |
push: | |
branches: [main] | |
# Run once a week (see https://crontab.guru) | |
schedule: | |
- cron: "0 0 * * 0" | |
jobs: | |
pre-commit: | |
name: Update pre-commit hooks and run pre-commit | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up git repository | |
uses: actions/[email protected] | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "1.20" | |
- name: Install homebrew | |
uses: homebrew/actions/setup-homebrew@master | |
- name: Install go module dependencies | |
run: | | |
go install mvdan.cc/sh/v3/cmd/shfmt@latest | |
go install github.com/magefile/mage@latest | |
- name: Install brew dependencies | |
run: | | |
brew install pre-commit | |
brew install shellcheck | |
- name: Run go mod tidy - necessary to avoid errors with dependabot PRs | |
run: | | |
go mod tidy | |
pushd magefiles; go mod tidy; popd | |
- name: Install pre-commit dependencies | |
run: mage installDeps | |
- name: Run pre-commit autoupdate action | |
uses: browniebroke/pre-commit-autoupdate-action@main | |
- name: Create Pull Request with updates | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
base: main | |
branch: update/pre-commit-hooks | |
title: Update pre-commit hooks | |
commit-message: "chore: update pre-commit hooks" | |
body: Update versions of pre-commit hooks to latest version. |