Home > Net >  How can I add progress bar to my github action
How can I add progress bar to my github action

Time:07-09

I am writing some GitHub actions for my project and I would like to have the orange progress bar to track the progress of my action.

example of github action doc

CodePudding user response:

The progress bar is shown on jobs that define the attribute environment

Here's an example of how to use it:

jobs:
  deploy:
    runs-on: ubuntu-latest
    environment: Production
    steps:
      - run: ./deploy.sh --env prod

CodePudding user response:

This is workflow reuse, you can read more in the documentation here

This progress bar shows jobs running in another workflow, which is probably not a good practice, but if you want this progress bar, you need to create various workflows and a centralized workflow that "reuses" all.

Github Actions show jobs running and done, you can track this why, no need for a progress bar. If you really want a progress bar directly for track jobs, you need to ask Github for this feature.

  • Related