Skip to content

Update contributorStatistics.yml #9

Update contributorStatistics.yml

Update contributorStatistics.yml #9

# 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" ]
pull_request:
branches: [ "master" ]
schedule: # execute every 24 hours
- cron: "* */24 * * *"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- 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 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 "nppstcc1001050311@gmail.com"
git config --local user.name "sobel"
git add --all
if [ -n "$(git status --porcelain)" ]; then
git commit -m "update contributor statistics" -a
echo "::set-output name=push::true"
else
echo "::set-output name=push::false"
fi
shell: bash
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}