You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use standard position for non-configuration env mapping in workflow
In cases where some project-specific configuration of reusable GitHub Actions workflows must be done via workflow
environment variables, the standard practice is to place the global `env` mapping near the top of the workflow to make
them easily accessible to the project maintainer. However, in other cases the mapping does not contain any values that
require adjustment. In this case, the established practice is to place it after the `on` mapping.
Previously, the `env` mapping of the "Sync Labels" workflow was used to define the project's standard Node.js version,
and thus the mapping was placed at the top of the workflow. However, this configuration was obviated by the change to
defining the Node.js value in the `package.json` file. So the `env` mapping is no longer used for per-project
configuration in this workflow and thus it should be moved below the `on` mapping.
0 commit comments