question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

add conditional execution of action steps

See original GitHub issue

Describe the enhancement Add possibility to use if: option for action steps of composite actions.

Code Snippet

inputs:
  echo-bla:
    description: 'echo bla-bla-bla if not empty'
    required: true
runs:
  using: "composite"
  steps:
    - run: echo "start"
      shell: bash
    - run: echo "bla bla bla"
      shell: bash
      if: ${{ inputs.echo-bla }}
    - run: echo "stop"
      shell: bash

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:236
  • Comments:46 (4 by maintainers)

github_iconTop GitHub Comments

38reactions
fearphagecommented, Oct 6, 2021

Please do not add +1’s to this issue. Just use the reactions on the first post instead. You’re pinging everyone that’s subscribed to this issue and providing no value.

Read more comments on GitHub >

github_iconTop Results From Across the Web

GitHub Actions: Conditional execution of steps in actions
This lets you prevent specific steps from executing unless a condition has been met. Like steps defined in workflows, you can use any...
Read more >
In a GitHub Action how to conditionalize a step based off ...
Building a GitHub action based on the commit message I'm trying to base a step on whether the commit message contains a particular...
Read more >
GitHub Actions — Conditional Job Execution | by Pavel Saman
Conditional job execution might not be the most used feature in GitHub Actions but ... steps: - run: echo "C". How do you...
Read more >
Advanced GitHub Actions - Conditional Workflow - hungvu.tech
How can I create one GitHub workflow which uses different secrets based on a triggered branch? The conditional workflow will solve this ...
Read more >
Conditional execution of steps
Each step in codefresh.yml file can contain conditions expressions that must be satisfied for the step to execute. This is a small example...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found