Enable more golangci-linter #298
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: Update gomod2nix.toml | |
on: pull_request | |
permissions: | |
contents: write | |
jobs: | |
renovatebot: | |
runs-on: ubuntu-latest | |
if: ${{ github.actor == 'renovate[bot]' }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
fetch-depth: 0 | |
- name: Install Nix | |
uses: cachix/install-nix-action@v30 | |
with: | |
github_access_token: ${{ secrets.GH_TOKEN_FOR_UPDATES }} | |
nix_path: nixpkgs=channel:nixos-unstable | |
- name: Update gomod2nix.toml | |
run: | | |
nix develop .#renovate --command bash -c "gomod2nix:update" | |
# git push if we have a diff | |
if [[ -n $(git diff) ]]; then | |
git add nix/packages/treefmt/gomod2nix.toml | |
git config --global user.email "<29139614+renovate[bot]@users.noreply.github.com>" | |
git config --global user.name "renovate[bot]" | |
git commit -m "chore: update gomod2nix.toml" | |
git push origin HEAD:${{ github.head_ref }} | |
fi |