User Guide¶
Getting Started¶
Add the
KAGGLE_KEY
secret to your GitHub repository underSettings > Secrets > Add a new secret
.Define a GitHub workflow by adding a
.github/workflow/kaggle-graph.yaml
to your repository using the template below:
name: Kaggle Graph Generation
on:
push:
branches: master
schedule:
- cron: '00 00 * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Git Checkout
uses: actions/checkout@v2
- name: Kaggle Graph Generation
uses: OliverSieweke/kaggle-graph@v0.1.0
with:
KAGGLE_KEY: ${{ secrets.KAGGLE_KEY }}
KAGGLE_USERNAME: oliversieweke
KAGGLE_COMPETITION_ID: titanic
- name: Git Auto Commit
uses: stefanzweifel/git-auto-commit-action@v4.1.6
with:
commit_message: Automatic Kaggle graph generation
Add the graph to your
README
:
- Markdown:
[!Kaggle Submissions Graph](./kaggle-submissions-graph.png)
- reStructuredText:
.. image:: ./kaggle-submissions-graph.png :alt: Kaggle Submissions Graph
Note
Note
Kaggle Graph is designed to be used in conjunction with the following GitHub actions:
Configurations¶
The action can be further configured over the input keys below:
Name |
Description |
Required |
Default |
Type |
---|---|---|---|---|
|
Kaggle username. |
|
|
|
|
Kaggle key. |
|
|
|
|
Kaggle competition ID. |
|
|
|
|
Output graph file name. |
|
|
|
|
Y-axis minimum boundary. |
|
|
|
|
Y-axis maximum boundary. |
|
|
|
|
Score type. |
|
|
|
|
Score objective. |
|
|
|
Troubleshooting¶
- My graph does not update:
GitHub seems to be caching images. Although the graph updates, the display may take a couple of minutes to reflect the change.