Skip to content

Commit

Permalink
2
Browse files Browse the repository at this point in the history
  • Loading branch information
Young-Flash committed Dec 6, 2024
1 parent 14205ce commit 1716b06
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,16 @@ jobs:
env UPDATE_EXPECT=1 cargo test
./target/release/moon_dashboard stat --file repos.txt
- name: Pull
run: git pull

- name: Commit
run: |
git config --local user.name "github-actions[bot]"
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git add ./webapp/public/*
git add ./repos.txt
git commit -m "Update data for ${{ matrix.os }}" || echo "No changes to commit"
git commit -m "Update data for ${{ matrix.os }} at $(date '+%Y-%m-%d %H:%M:%S')" || echo "No changes to commit"
- name: Push changes
run: git push
Expand Down
2 changes: 2 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ fn get_mooncake_sources(
// moonbitlang/core 0.1.0 0.2.0
let parts: Vec<&str> = s.split(' ').collect();
let name = parts[0].to_string();
#[cfg(target_os = "windows")]
let name = name.replace('/', "\\");
let mut xs: Vec<String> =
parts[1..].iter().copied().map(|s| s.to_string()).collect();
if xs.is_empty() {
Expand Down

0 comments on commit 1716b06

Please sign in to comment.