Skip to content
upload-cloud

GitHub Action

Kaggle Login

v2.3 Latest version

Kaggle Login

upload-cloud

Kaggle Login

Login to Kaggle

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Kaggle Login

uses: osbm/kaggle-login@v2.3

Learn more about this action in osbm/kaggle-login

Choose a version

A github action to login to kaggle

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.

example usage:

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@main
        with:
          KAGGLE_USERNAME: {{ secrets.KAGGLE_USERNAME }}
          KAGGLE_KEY: {{ secrets.KAGGLE_KEY }}

      - name: Use kaggle api to list datasets
        run: |
          kaggle datasets list