update graph #164
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: update graph | |
on: | |
schedule: | |
# 1st day every month | |
- cron: '0 0 1 * *' | |
# every Saturday Sunday | |
- cron: '0 0 * * 6,0' | |
jobs: | |
update-graph: | |
name: Update graph | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: git setting | |
run: | | |
git config --local user.email "10195648+hmiyado@users.noreply.github.com" | |
git config --local user.name "hmiyado" | |
- run: | | |
set -x | |
sudo apt-get install gnuplot | |
./scripts/graph/generate_graph.sh | |
git add -A | |
git switch -c update-graph | |
git commit -m 'Update four keys images' | |
git push -u origin update-graph | |
gh pr create --fill --head update-graph --base main | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |