add conditional execution of action steps
See original GitHub issueDescribe 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:
- Created 3 years ago
- Reactions:236
- Comments:46 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Release announcement: https://github.blog/changelog/2021-11-09-github-actions-conditional-execution-of-steps-in-actions/
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.