einaregilsson / build-number

GitHub action for generating sequential build numbers.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`set-env` command is deprecated and will be disabled soon

sanjivpurohit opened this issue · comments

Warning: The set-env command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/

Thanks for letting me know :) I'll try to get it fixed soon, although this action should really not be used, much easier to just use $GITHUB_RUN_NUMBER now.

fixed by #14

@einaregilsson GITHUB_RUN_NUMBER doesn't work between different workflows (for example I have a different one for production), It also resets if you change the workflow name. GITHUB_RUN_ID does technically work, but it makes the ugliest version number possible (I think its a global run inside GitHub).

This action seems like a good compromise and give some control over the number

Fair point. I've published v3 which uses the updated way of setting env variables.

Cool thanks 👍