Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate special functions #214

Closed
rhysd opened this issue Sep 16, 2022 · 1 comment
Closed

Validate special functions #214

rhysd opened this issue Sep 16, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@rhysd
Copy link
Owner

rhysd commented Sep 16, 2022

https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability

Some functions are special since they limit where they can be called. For example, always() can be called in only jobs.<job_id>.if and jobs.<job_id>.steps.if.

  • always
  • cancelled
  • success
  • failure
  • hashFiles

actionlint should check usage of these special functions.

Related to #180

@rhysd rhysd added the enhancement New feature or request label Sep 16, 2022
@rhysd rhysd closed this as completed in 011c6a1 Oct 8, 2022
@rhysd
Copy link
Owner Author

rhysd commented Oct 9, 2022

Fix for this issue was shipped at v1.6.21.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant