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 2c13372
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 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 Expand Up @@ -96,6 +99,7 @@ jobs:
sed -i '' 's|"/linux/latest_data.jsonl.gz"|"/moon-build-dashboard/linux/latest_data.jsonl.gz"|g' ./dist/assets/*.js
sed -i '' 's|"/windows/latest_data.jsonl.gz"|"/moon-build-dashboard/windows/latest_data.jsonl.gz"|g' ./dist/assets/*.js
sed -i '' 's|"/mac/latest_data.jsonl.gz"|"/moon-build-dashboard/mac/latest_data.jsonl.gz"|g' ./dist/assets/*.js
cd dist && tree
working-directory: ./webapp

- name: Deploy to GitHub Pages
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 2c13372

Please sign in to comment.