mirror of
https://github.com/Mic92/sops-nix.git
synced 2024-12-14 11:57:52 +00:00
84d006846f
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 29 to 30. - [Release notes](https://github.com/cachix/install-nix-action/releases) - [Commits](https://github.com/cachix/install-nix-action/compare/v29...v30) --- updated-dependencies: - dependency-name: cachix/install-nix-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
31 lines
975 B
YAML
31 lines
975 B
YAML
name: Update vendorHash
|
|
on: pull_request
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
dependabot:
|
|
runs-on: ubuntu-latest
|
|
if: ${{ github.actor == 'dependabot[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.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 config --global user.email "<49699333+dependabot[bot]@users.noreply.github.com>"
|
|
git config --global user.name "dependabot[bot]"
|
|
git commit -m "update vendorHash"
|
|
git push origin HEAD:${{ github.head_ref }}
|
|
fi
|