Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

What editor/plugin combination provides correct JS highlighting and content assist for actions/github-script@v7 embedded JS? #443

Answered by bedge
bedge asked this question in Q&A
Discussion options

I've tried the Intellij actions plugin, which supports only rudimentary yaml and some general yaml section support.
The vsc actions plugin looks like it may work, as it attempts to format the embedded JS as JS, but not when syntactically correct for an actions workflow.
eg:
image

The above refuses to apply any syntax/formatting to the JS block within the action step. (With the exception of the "${{ ... }}" blocks)

Adding an empty line after script: | shows additional formatting, but now the script syntax is incorrect from the actions perspective:
image

Given the ridiculously complicated scoping/syntax/context rules within actions, something like this, that reliably works, and has some GH actions variable/global knowledge is desperately needed.

I expect I'm just doing it wrong.

Any pointers on this greatly appreciated.

You must be logged in to vote

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bedge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /