Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Pilot Lvl 1
Message 1 of 15

Add build number?

Solved! Go to Solution.

First, just because other CI providers have a feature doesn't necessarily mean that it should be implemented in Actions.

 

That said, it would be very helpful to have a build number, or maybe even a build.job number, similar to Travis.

 

Recently I wanted to look over the results of several builds, and there is no easy way to determine what is what (or what the order was).  If the 'number' appeared early in the html title, one could see it on the browser tab, which is very helpful...

14 Replies
Highlighted
Moderator
Message 2 of 15

Re: Add build number?

Hello @MSP-Greg

Thank you for your feedback! We're always working to improve GitHub and the GitHub Community Forum, and we consider every suggestion we receive. I've logged your feedback in our internal feature request list.

 

Though I can't guarantee anything or share a timeline for this, I can tell you that it's been shared with the appropriate teams for consideration.

Once again, thank you for your input!

Greatly appreciated,

MChevy422

Mark helpful posts with Accept as Solution to help other users locate important info. Don't forget to give Kudos for great content!

Highlighted
Copilot Lvl 2
Message 3 of 15

Re: Add build number?

Is this not what $GITHUB_RUN_NUMBER is for?

Highlighted
Pilot Lvl 1
Message 4 of 15

Re: Add build number?

I've been using the build number as part of my version numbers (yyyy.m.d.build) which makes it easy to know when the deployment happened, and which build it's from. This is one of the last things stopping me from moving all of my builds over to actions.

Highlighted
Copilot Lvl 3
Message 5 of 15

Re: Add build number?

I have posted the same thing here over on the GitHub actions/toolkit repo as an issue as I am stil unsure where the best place is to discuss with the GitHub team and give feedback.

 

Is it on issuses or here in this forum?

https://github.com/actions/toolkit/issues/65

Highlighted
Community Manager
Message 6 of 15

Re: Add build number?

Thanks @xt0rted and @warrenbuckley for being here! This is the right place for this type of feedback as the team who directly works in actions is here and interacts with users. I can tell you that although as you know this is not available as yet, there is an internal discussion to add this feature to GitHub Actions and your feedback has been added to it.


I hope this helps,
Andrea

Mark helpful posts with Accept as Solution to help other users locate important info. Don't forget to give Kudos for great content!

Highlighted
Copilot Lvl 2
Message 7 of 15

Re: Add build number?

CI build ID would be helpful. I recently added integration for GitHub Actions into my ruby gem knapsack_pro for automated tests split across parallel jobs. The CI build ID is needed to allow to run a few CI build at the same time for the same git commit. 

 

Here is more about my integration with GitHub Actions

https://docs.knapsackpro.com/2019/how-to-run-rspec-on-github-actions-for-ruby-on-rails-app-using-par...

Highlighted
Ground Controller Lvl 2
Message 8 of 15

Re: Add build number?

I've made a simple action to generate sequential build numbers, https://github.com/einaregilsson/build-number . Would love for it to be made obsolete by GitHub implementing this natively, but until then I use it so I can continue the same versioning scheme I used on my old CI/CD system. I don't think there's any way right now to make the build number appear in the list of workflow runs though, that would be great if that was possible.

Highlighted
Copilot Lvl 3
Message 9 of 15

Re: Add build number?

I think having `check-suite-id` (and `check-run-id`) available as environment variables would provide approptiate for the purpose number. 

See https://github.community/t5/GitHub-Actions/Check-Suite-identifier-as-an-environment-variable/m-p/354...

Highlighted
Copilot Lvl 2
Message 10 of 15

Re: Add build number?

Looking forward for this implementation.