fix(deps): update github.com/go-git/go-git/v5 digest to 4fd9979 #3
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@V27 | |
with: | |
github_access_token: ${{ secrets.GH_TOKEN_FOR_UPDATES }} | |
nix_path: nixpkgs=channel:nixos-unstable | |
- name: Update gomod2nix.toml | |
run: | | |
nix develop --command bash -c "gomod2nix:update" | |
# git push if we have a diff | |
if [[ -n $(git diff) ]]; then | |
git add default.nix | |
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 |