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.

$RESOLVED_VERSION not expanded when set via action input

See original GitHub issue

Using the name input:

...
jobs:
  update_release_draft:
    runs-on: ubuntu-latest
    steps:
      - uses: release-drafter/release-drafter@v5
        with:
          name: "$RESOLVED_VERSION"
...

the release draft will be named $RESOLVED_VERSION, which obviously is not what I expected.

However inside the config file

name-template: '$RESOLVED_VERSION'

the release draft will correctly be named with the version, e.g. 1.0.0.

Now, the name overrides the name-template: <kbd></kbd>

I expect both configs behave identically, I would have guessed variable expansion takes places after the override happened, so it shouldn’t matter where the config string came from.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
jetersencommented, Feb 1, 2022

Right make sense, would welcome a PR 😃

0reactions
mkurzcommented, Feb 1, 2022

@jetersen Here is the fix #1049, wasn’t too hard.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Environment variables not always being expanded in GitHub ...
I have a GitHub Actions workflow file where environment ...
Read more >
BigFix WebUI Infrastructure - HCL support
Applies to BigFix WebUI Issue WebUI is showing weird characters in dashboard. Resolution On the machine where WebUI is installed, add the _WebUIAppEnv_LANG ......
Read more >
How to Create a Custom GitHub Action with Node & JavaScript
Configuring our action to “run” node.js version 12; Setting our “main” entry point to our script at dist/index.js. We won't really see ...
Read more >
Nick Fury Comes to the Console via Github Actions - Lob
We also set an os variable that allows us to expand the number of VMs ... For example, the actions/setup-node@v1 takes an input...
Read more >
Github Action - handling input default value
Github Action offers the way to parametrize your action when you're using workflow_dispatch to manually trigger the action. Let's say we have ...
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