add scripts to update vendorHash

This commit is contained in:
Jörg Thalheim 2023-07-15 08:20:21 +02:00 committed by mergify[bot]
parent 62a7c95c8c
commit 3c851dbbea
2 changed files with 45 additions and 0 deletions

28
.github/workflows/dependabot.yml vendored Normal file
View file

@ -0,0 +1,28 @@
name: Update vendorSha256
on: pull_request
permissions:
contents: write
jobs:
dependabot:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Nix
uses: cachix/install-nix-action@v22
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
nix_path: nixpkgs=channel:nixos-unstable
- name: Update checksum
run: |
./scripts/update-vendor-hash.sh
# git push if we have a diff
if [[ -n $(git diff) ]]; then
git add default.nix
git commit -m "update vendorHash"
git push
fi