-
Notifications
You must be signed in to change notification settings - Fork 887
chore: add script to update flake automatically #14046
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
# Allows dependabot to still rebase! | ||
commit_message: "[dependabot skip] Update Nix Flake SRI Hash" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should only do this if the author is @dependabot
For other PRs, this will cause drift, and the author will have to pull/push to synchronize. Also, the message "[dependabot skip] Update Nix Flake SRI Hash"
doesn't look very nice on a human-created PR.
- uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
# Allows dependabot to still rebase! | ||
commit_message: "[dependabot skip] Update Nix Flake SRI Hash" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
# Allows dependabot to still rebase! | |
commit_message: "[dependabot skip] Update Nix Flake SRI Hash" | |
# auto update flake for dependabot | |
- uses: stefanzweifel/git-auto-commit-action@v5 | |
if: github.actor == 'dependabot[bot]' | |
with: | |
# Allows dependabot to still rebase! | |
commit_message: "[dependabot skip] Update Nix Flake SRI Hash" | |
# check for other PRS | |
- name: Ensure No Changes | |
if: github.actor != 'dependabot[bot]' | |
run: git diff --exit-code | |
No description provided.