Skip to content

Export timetracking statistics #1

Export timetracking statistics

Export timetracking statistics #1

Workflow file for this run

name: Export timetracking statistics
on:
schedule:
- cron: "0 23 * * 2"
workflow_dispatch:
jobs:
generate:
runs-on: [self-hosted]
steps:
- name: Checkout repository
uses: actions/checkout@4
- name: Fetch the current timetracking data
run: cd docs/guidelines/timetracking && ./get_data.sh
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Generate the desired charts
run: cd docs/guidelines/timetracking && python generate_charts.py
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
default_author: github_actions
- uses: peterjgrainger/[email protected]
name: 'Create a new branch'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
branch: 'actions/new-timetracking-data'
sha: 'main'
- name: 'Checkout the new branch'
uses: actions/checkout@v4
with:
ref: 'actions/new-timetracking-data'
- name: 'Create a new Pull Request'
run: gh pr create -a benedictweis -B main --title \"Update timetracking data\""
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ISSUE: ${{ github.event.issue.html_url }}