rbarazzutti / gitinfo2-latexmk Goto Github PK
View Code? Open in Web Editor NEWUse LaTeX's gitinfo2 with almost no effort
License: LaTeX Project Public License v1.3c
Use LaTeX's gitinfo2 with almost no effort
License: LaTeX Project Public License v1.3c
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 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)'.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.