Giter Site home page Giter Site logo

42-submit-action's Introduction

42-submit-action

A github action that submits specified part of the repo to intra.42.fr. The author and the email are deduced from the latest commit.

๐Ÿ›‘ Warning! Work in progress! ๐Ÿ›‘

Current ready-to-use version is v0.1.1.

It is good enough to work for our minishell but that's it.

Example usage

- uses: Oktosha/[email protected]
        with:
          code-to-submit: kotishell
          intra-repo: ${{ secrets.INTRA_REPO_URL }}
          intra-ssh-key: ${{ secrets.SSH_PRIVATE_KEY_FOR_INTRA }}

You can find the full example in our minishell repo.

Todo

  • Better parameters
    • passing author and commit message as optional parameter (can be especially nice for manual dispatch)
  • Test commiting the whole repo and subdirs
    • multiple submitted dirs
    • submodules handling
    • testing submitting the whole repo (should work, but not tested)
    • testing starting with an empty intra repo (should work, but not tested)
  • nice errors
    • message when there is nothing to commit
    • when the code-to-submit dir doesn't exist
    • when the ssh key doesn't work
    • ...
  • More example workflows
  • Docs overall

Things to read while the docs aren't ready

Super insightful read on ssh-agent: http://blog.joncairns.com/2013/12/understanding-ssh-agent-and-ssh-add/

Notes

A sensetive env variable is "unset" by assigning an empty line to it

run: echo "SSH_AUTH_SOCK=" >> "$GITHUB_ENV"

At the moment of writing there is no way to unset an env variable in an action, so I only override it actions/runner#1126

42-submit-action's People

Contributors

oktosha avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.