Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
film

GitHub Action

movie-box

0.1.1

movie-box

film

movie-box

Update a gist to contain your recently watched movies from trakt.tv

Installation

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

              

- name: movie-box

uses: LuisAlejandro/movie-box@0.1.1

Learn more about this action in LuisAlejandro/movie-box

Choose a version

movie-box

Update a gist to contain your recently watched movies from trakt.tv


📌✨ For more pinned-gist projects like this one, check out: https://github.com/matchai/awesome-pinned-gists

✨ Inspiration

This code was heavily inspired by @jacc's music-box.

🎒 Prep Work

  1. Create a new public GitHub Gist (https://gist.github.com/)
  2. Create a token with the gist scope and copy it. (https://github.com/settings/tokens/new)
  3. Create a Trakt.tv Application (https://trakt.tv/oauth/applications/new)
  4. Copy the API token

🖥 Project Setup

  1. Fork this repo
  2. Go to your fork's Settings > Secrets > Add a new secret for each environment secret (below)

🤫 Environment Secrets

  • GIST_ID: The ID portion from your gist url https://gist.github.com/<github username>/<gist ID>.
  • GH_TOKEN: The GitHub token generated above.
  • TRAKT_ID: The Client ID you got from creating a Trakt.tv app.
  • TRAKT_USERNAME: Your Last.fm username.
  • MOVIE_BOX_MODE: Select the box mode from three options: movies, shows and stats.

🕵🏾 Hacking suggestions

  • You can set up CI on Travis if you want to modify this Github Action. You just have to configure the environment secrets as environment variables on travis. A build will be triggered on every push for the develop branch. Careful, your gist WILL be updated.

  • You can also test the script locally with Lando and Docker:

    • Install Docker Community Edition according with your operating system

    • Install Lando according with your operating system.

    • Install a git client.

    • Clone your fork of the repository.

    • Open a terminal and navigate to the newly created folder.

    • Change to the develop branch.

        git branch develop
      
    • Execute the following command to create the docker image (first time only):

        make image
      
    • Execute the following command to start the project:

        make start
      
    • Execute the following command to stop the project (you can also hit ctrl+C):

        make stop