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.

Interpolation of variables

See original GitHub issue

In the

https://github.com/ad-m/github-push-action/blob/master/action.yml#L12 and https://github.com/ad-m/github-push-action/blame/master/README.md#L35

there is interpolation used as {{ secrets.GITHUB_TOKEN }} and ${GITHUB_REPOSITORY}.

From the docs I think it should be ${{ <expression> }}. Should we change it to make it right?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:15 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
ad-mcommented, Oct 10, 2019

In my opinion - since action.yml contains all necessary information, there is no reason for users to manually write documentation in regard of input and output. It is prone to erroneous and difficult to automatically verify. If GitHub Marketplace for GitHub Actions will not automatically present the information currently contained in action.yml, we will have to update README.md automatically eg. by another actions. PR #14 is an example that content in README.md and action.yml is duplicated and therefore prone to errors.

1reaction
ad-mcommented, Oct 10, 2019

I would not see it as a single tag, but a separate section <!-- action-doc-start-->...<!-- action-doc-end-->, which the script would automatically fill. In the event of a change, the script would change the content of the section, and our action could automatically commit the changes. In the absence of any changes, the script would not change the content of the section, so there would be no changes to be posted.

It’s possible that others are waiting for GitHub to properly document this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Interpolating Variables Into a String - Real Python
This video covers interpolating variables into a string. ... In this lesson, you'll learn how to do variable interpolation with f-strings.
Read more >
Simple variable interpolation
In Perl, we always use variable interpolation to construct complex strings in which variables are started with special marks (sigil), ...
Read more >
PHP Variable Interpolation - Phppot
Variable interpolation is adding variables in between when specifying a string literal. PHP will parse the interpolated variables and ...
Read more >
LESS - Variables Interpolation - Tutorialspoint
The variable interpolation is the process of evaluating an expression or literal containing one or more variables, yielding output in which the variables ......
Read more >
Interpolation calculator for function of two variables
Two-variable interpolator ... This page will let you interpolate a function of two variables. Specify the value of the function at three given...
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