Skip to content

make chart responsive #452

make chart responsive

make chart responsive #452

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: contributor statistics
on:
push:
branches: ["master"]
paths:
- .github/workflows/contributorStatistics.yml
- customTitle.json
pull_request:
branches: ["master"]
schedule: # execute every 24 hours
- cron: "* */24 * * *"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: load resources
uses: actions/checkout@v4
- name: Install cjk font
run: sudo apt-get install fonts-noto-cjk
- name: Install Segoe-UI font
run: |
DEST_DIR="${HOME}/.fonts/segoeui"
mkdir -p $DEST_DIR
VARIANTS='segoeui segoeuib segoeuii segoeuiz segoeuil seguili segoeuisl seguisli seguisb seguisbi seguibl seguibli seguiemj seguisym seguihis'
for VARIANT in $VARIANTS; do
# Do not overwrite existing files
wget --no-clobber https://github.com/mrbvrz/segoe-ui/raw/master/font/${VARIANT}.ttf?raw=true -O "${DEST_DIR}/${VARIANT}.ttf"
done
fc-cache -fv
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
- name: Update video informations
run: dotnet /home/runner/work/YTPlayListDownloader/YTPlayListDownloader/bin/Release/net6.0/YTPlayListDownloader.dll update
- name: Update statistics
run: dotnet /home/runner/work/YTPlayListDownloader/YTPlayListDownloader/bin/Release/net6.0/YTPlayListDownloader.dll stat
- name: Commit files
id: commit
run: |
git config --local user.email "[email protected]"
git config --local user.name "sobel"
git add --all
if [ -n "$(git status --porcelain)" ]; then
git commit -m "update data" -a
echo "{push}={true}" >> $GITHUB_OUTPUT
else
echo "{push}={false}" >> $GITHUB_OUTPUT
fi
shell: bash
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}