You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Kaggle Login
v2
This is a very simple composite action that install kaggle and logs into kaggle.
You need to set the username and the key as repository secrets.
on:
workflow_dispatch: # manually trigger the action
push: # automatically trigger the action when a new commit is pushed to the repo
jobs:
testitout:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v3
- name: Login to Kaggle
- uses: osbm/kaggle-login@test-composite
with:
KAGGLE_USERNAME: {{ secrets.KAGGLE_USERNAME }}
KAGGLE_KEY: {{ secrets.KAGGLE_KEY }}
- name: Use kaggle api to list datasets
run: |
kaggle datasets list