Quentin TREHEUX
Quentin TREHEUX

Reputation: 163

How can I add progress bar to my github action

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

Upvotes: 14

Views: 3816

Answers (2)

rethab
rethab

Reputation: 8403

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

Upvotes: 16

fguisso
fguisso

Reputation: 32

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.

Upvotes: -4

Related Questions