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.

Allow using an expression to specify a reusable workflow

See original GitHub issue

Describe the enhancement Following syntax is currently not supported:

jobs:
  call:
    uses: 'org/repo/path/workflow.yml@{{ github.sha }}'

It fails with invalid value workflow reference: version cannot have whitespace: ${{ github.sha }}

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
asvetlovcommented, Dec 8, 2021
0reactions
bn-gbatyckicommented, Mar 7, 2023

#1419 doesn’t address this question.

Currently, it seems like we won’t be able to have a parameter to dynamically modify which version of the workflow is called:

uses: ...@${{ inputs.branch-whose-workflow-to-use }}

Do you know if this ever gonna be fixed?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to use GitHub action secrets in a reusable workflow?
Moreover, note that you don't specify the runner and steps when calling a reusable workflows. You just specify the reusable workflow path with...
Read more >
How to start using reusable workflows with GitHub Actions
They allow you to specify any number of things and customize them more to your liking. Reusable workflows also don't require individual folders ......
Read more >
10 Important Things To Know Before Transitioning ...
You can use these context variables to customize the behavior of your workflow, for example you can use the “if” condition on the...
Read more >
Avoid Duplication! GitHub Actions Reusable Workflows
Using a Reusable Workflow · the name of the user or organization that owns the repo where the reusable workflow is stored ·...
Read more >
Ternary Operators in GitHub Actions
When you create a reusable workflow, you can define inputs for these workflows. The boolean type of input is special in that what...
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