Closed
Description
I have a common deployment workflow shared across both my staging and production environments with an if condition so it only triggers for production deployments:
- name: Notify Rollbar of deployment
continue-on-error: true
uses: rollbar/github-deploy-action@eaf2a60ea238bd273226eee0ddceecfe5611964d # 2.1.2
if: ${{ inputs.environment == 'production' }}
However, I noticed for my staging deployments, the action is still running a build / setup step at the start of my workflow that takes about 5 seconds:
Build container for action use: '/home/runner/work/_actions/rollbar/github-deploy-action/eaf2a60ea238bd273226eee0ddceecfe5611964d/Dockerfile'
I've been trying to get my deployments around a minute so this actually accounts for 5% of my total deployment time.
Is there a better way to skip this action for different environments or make the action smarter so it doesn't run this when it's being skipped?
Thanks
Metadata
Metadata
Assignees
Labels
No labels