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

tweak bump ci #551

Merged
merged 4 commits into from
May 8, 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
11 changes: 6 additions & 5 deletions .github/workflows/daily-regression.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Daily Regression
on:
schedule:
# Run this job everyday at 6:30 AM UTC+8
- cron: '30 10 * * *'
- cron: '30 22 * * *'

jobs:
gen-matrix:
Expand Down Expand Up @@ -178,10 +178,10 @@ jobs:
sed -i "s|$oldHash|$newHash|" nix/t1/t1.nix
- name: Commit changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.T1_PR_PAT }}
run: |
git config user.name github-actions
git config user.email [email protected]
git config user.name Avimitin
git config user.email [email protected]

currentDate=$(date +%F)
branch="dependencies-bumping-$currentDate"
Expand All @@ -194,9 +194,10 @@ jobs:
}

if ! git diff --quiet --cached --exit-code; then
updatedFiles=$(git diff --cached --name-only)
echo "File changed"
git commit -m "[deps] Bump T1 dependencies"
git push origin "$branch" --force-with-lease
nix run '.#gh' -- \
pr create --title "Bump T1 dependencies" --body "Updated: $(git diff --cached --name-only)"
pr create --title "Bump T1 dependencies" --body "Updated: $updatedFiles"
fi
Loading