Skip to content
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

Auto updater fix #19

Merged
merged 8 commits into from
Oct 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions .github/workflows/updater.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: "Flake updater"

on:
schedule:
- cron: "0 3 * * *"
- cron: "0 7 * * *" # UTC, 3AM EST
workflow_dispatch: # allow manual triggering
# pull_request:
# push:
Expand Down Expand Up @@ -275,7 +275,14 @@ jobs:
git checkout -b $BRANCH_NAME
git add flake.lock
git commit -m "chore(deps): update flake lock"
git push origin $BRANCH_NAME
gh pr create --title "Flake update" --body "\`\`\`$(cat all-diffs)\`\`\`" --base master --head "$BRANCH_NAME"
git push --force-with-lease origin $BRANCH_NAME

echo "Diffs:" > body
echo "\`\`\`" >> body
cat all-diffs >> body
echo "\`\`\`" >> body
cat body

gh pr create --title "Flake update" --body-file body --base master --head "$BRANCH_NAME" --reviewer appaquet
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}