GithubHelp home page GithubHelp logo

gitinfo2-latexmk's People

Contributors

aerysl avatar rbarazzutti avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

gitinfo2-latexmk's Issues

Working on github actions

I have troubles making this work on github actions ? I have a github action that looks like :

---
name: "Release pdf"

on:
  push:
    branches:
      - "master"

jobs:
  release_cv:
    name: "Release CV"
    runs-on: ubuntu-latest
    steps:
    - name: Checkout master
      uses: actions/checkout@v1
    - name: Compile CV
      uses: xu-cheng/latex-action@master
      with:
        root_file: CV.tex
    - name: Check pdf file
      run: |
        file CV.pdf | grep -q ' PDF '
    - name: "Upload"
      uses: "marvinpinto/action-automatic-releases@latest"
      with:
        repo_token: "${{ secrets.GITHUB_TOKEN }}"
        automatic_release_tag: "latest"
        prerelease: true
        title: "Build"
        files: |
          CV.pdf

which is supposed to release my CV online. It works great, and since it runs on github actions Hooks are not possible.

Adding do './tex/gitinfo2.pm'; to my .latexmkrc only yields :

sh: git: not found
sh: git: not found
sh: git: not found

while running gitinfo2.pm. I suppose this is because standard git commands do not work in a github action context. Do you think there is still something we can do ?

I can't find the file '.git/gitHeadInfo.gin'

I have placed

gitinfo2.pm

in my project's main folder. In that same folder I have added a .latexmkrc with content

do './gitinfo2.pm';

In addition I added

\usepackage[mark]{gitinfo2}

to my document.

However, with

latexmk -pdf main.tex

I get

Package gitinfo2 Warning: I can't find the file '.git/gitHeadInfo.gin'.
(gitinfo2)                All git metadata has been set to '(None)'.

Request for License

This repo looks to be quite useful, however currently it is unlicensed. I would recommend adding a license (perhaps MIT, BSD, or whichever you find best suits your needs) to allow others (including myself) to use it in their projects. Thank you for your consideration.

Edit: Looking at gitinfo2 (which includes the example hook), it is under the The LATEX Project Public License 1.3, so that may be a good option for license if you choose to add one.

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.