Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Action still runs a build step even when it's skipped #34

Open
cswilliams opened this issue Jan 28, 2025 · 0 comments
Open

Action still runs a build step even when it's skipped #34

cswilliams opened this issue Jan 28, 2025 · 0 comments

Comments

@cswilliams
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant