Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

actions - add actual full version to log ? #286

Open
MSP-Greg opened this issue Jun 21, 2020 · 0 comments
Open

actions - add actual full version to log ? #286

MSP-Greg opened this issue Jun 21, 2020 · 0 comments

Comments

@MSP-Greg
Copy link

Recently had a issue with checking out a ref (tag) on a repo installed/cloned via this action. Something recently broke what previously worked. Not quite sure as to the cause, but I wondered one thing.

Most people pin actions to the major version in workflows. Could actions start logging the full version in the log? It would help when things are acting 'odd'.

I've got a public custom action, with a dist folder, and I just added the following line in js code:

const version = JSON.parse(fs.readFileSync(`${__dirname}\\package.json`, 'utf8')).version

And then logged it.

Building it copied package.json it to the dist folder, but it's a small, and that way the version isn't duplicated...

@MSP-Greg MSP-Greg changed the title actions - add actual version to log ? actions - add actual full version to log ? Jun 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant