Movatterモバイル変換


[0]ホーム

URL:


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

Answeredbybedge
bedge asked this question inQ&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 afterscript: | 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

I just foundhttps://github.com/harrydowning/yaml-embedded-languages/issues that addresses the above:

image

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

[8]ページ先頭

©2009-2025 Movatter.jp