Skip to content

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

Merged
merged 1 commit into from
Jul 29, 2024
Merged

chore: add script to update flake automatically #14046

merged 1 commit into from
Jul 29, 2024

Conversation

kylecarbs
Copy link
Member

No description provided.

@kylecarbs kylecarbs requested a review from coadler July 29, 2024 18:17
@kylecarbs kylecarbs self-assigned this Jul 29, 2024
@kylecarbs kylecarbs enabled auto-merge (squash) July 29, 2024 18:18
@kylecarbs kylecarbs disabled auto-merge July 29, 2024 18:29
@kylecarbs kylecarbs merged commit b7102b3 into main Jul 29, 2024
30 of 33 checks passed
@kylecarbs kylecarbs deleted the updateflake branch July 29, 2024 18:29
Comment on lines +139 to +142
- uses: stefanzweifel/git-auto-commit-action@v5
with:
# Allows dependabot to still rebase!
commit_message: "[dependabot skip] Update Nix Flake SRI Hash"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kylecarbs

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.

Comment on lines +139 to +142
- uses: stefanzweifel/git-auto-commit-action@v5
with:
# Allows dependabot to still rebase!
commit_message: "[dependabot skip] Update Nix Flake SRI Hash"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- 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

matifali added a commit that referenced this pull request Jul 30, 2024
…thors

Improves #14046
Solved the CI stuck issue exhibited in
- #14039
- #14040 
- #14041
- #14044
matifali added a commit that referenced this pull request Jul 30, 2024
…thors

Improves #14046
Solved the CI stuck issue exhibited in
- #14039
- #14040
- #14041
- #14044
matifali added a commit that referenced this pull request Jul 30, 2024
…thors

Improves #14046
Solved the CI stuck issue exhibited in
- #14039
- #14040
- #14041
- #14044
matifali added a commit that referenced this pull request Jul 30, 2024
…thors

Improves #14046
Solved the CI stuck issue exhibited in
- #14039
- #14040
- #14041
- #14044
matifali added a commit that referenced this pull request Jul 30, 2024
…thors

Improves #14046
Solved the CI stuck issue exhibited in
- #14039
- #14040
- #14041
- #14044
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants