2023-07-15 06:53:36 +00:00
|
|
|
name: Update vendorHash
|
2023-07-15 06:20:21 +00:00
|
|
|
on: pull_request
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
dependabot:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
if: ${{ github.actor == 'dependabot[bot]' }}
|
|
|
|
steps:
|
2023-09-05 05:27:10 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-07-15 06:20:21 +00:00
|
|
|
with:
|
2023-07-15 07:06:58 +00:00
|
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
2023-07-15 06:20:21 +00:00
|
|
|
fetch-depth: 0
|
|
|
|
- name: Install Nix
|
2024-10-07 23:14:23 +00:00
|
|
|
uses: cachix/install-nix-action@v30
|
2023-07-15 06:20:21 +00:00
|
|
|
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
|
2023-07-15 06:53:36 +00:00
|
|
|
git config --global user.email "<49699333+dependabot[bot]@users.noreply.github.com>"
|
|
|
|
git config --global user.name "dependabot[bot]"
|
2023-07-15 06:20:21 +00:00
|
|
|
git commit -m "update vendorHash"
|
2023-07-15 07:19:44 +00:00
|
|
|
git push origin HEAD:${{ github.head_ref }}
|
2023-07-15 06:20:21 +00:00
|
|
|
fi
|