diff --git a/.env.example b/.env.example index 37b79b0..6fb7665 100644 --- a/.env.example +++ b/.env.example @@ -1,248 +1,72 @@ -################################################################################ -# @github/local-action Variables # -################################################################################ +# @github/local-action Variables -###################################################################### -# The path to a workspace that can be used by `@github/local-action` # -# during local testing. This will be used as the root directory for # -# any files created by your action, as well as any environment files # -# that are created automatically by `@github/local-action`. If you # -# try to interact with the `@actions/artifact` or `@actions/cache` # -# packages, this tool will throw an error if this is not set to a # -# valid path. # -###################################################################### -LOCAL_ACTION_WORKSPACE="" - -###################################################################### -# Local path where any artifacts will be saved. Will throw an error # -# if the action attempts to use the `@actions/artifact` package # -# without setting this value first. # -###################################################################### -LOCAL_ACTION_ARTIFACT_PATH="" - -###################################################################### -# Local path where any caches will be read or saved. Will throw an # -# error if the action attempts to use the `@actions/cache` package # -# without setting this value first. # -###################################################################### -LOCAL_ACTION_CACHE_PATH="" - -################################################################################ -# GitHub Actions Inputs # -# # -# GitHub Actions inputs should follow `INPUT_` format (all uppercase). # -# Hyphens should not be converted to underscores! If your `action.yml` file # -# contains default values for inputs, you do not need to set them here too. # -################################################################################ +# Format: INPUT_ (all uppercase, keep hyphens as-is) +# Inputs with defaults in action.yaml don't need to be set here # Add your inputs here... -################################################################################ -# GitHub Actions Environment Variables # -################################################################################ +# Name of the event that triggered the workflow (e.g. workflow_dispatch, pull_request) +GITHUB_EVENT_NAME= -# The following variables are set for every run of a workflow and can be used in -# your action. The initial values in this file are the defaults set by GitHub -# Actions. You can override them to suit your needs. -# -# For more information, see: -# https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables +# Path to the file containing a full event webhook payload +GITHUB_EVENT_PATH=tests/fixtures/event.json -###################################################################### -# Enable/disable step debug logging. Default is normally `false`, # -# but it is set to `true` for local debugging purposes. # -###################################################################### -ACTIONS_STEP_DEBUG=true +# Fully-formed ref of the branch or tag that triggered the workflow run (e.g. refs/heads/feature-branch-1) +# GITHUB_REF= -###################################################################### -# Always set to `true`. # -###################################################################### -CI=true +# Short ref name of the branch or tag that triggered the workflow run (e.g. feature-branch-1) +# GITHUB_REF_NAME= -###################################################################### -# Always set to true when GitHub Actions is running the workflow. # -# You can use this variable to differentiate when tests are being # -# run locally or by GitHub Actions. # -###################################################################### +# Type of ref that triggered the workflow run (e.g. branch or tag) +# GITHUB_REF_TYPE= + +# Target branch of a pull_request or pull_request_target event (e.g. main) +# GITHUB_BASE_REF= + +# Source branch of a pull_request or pull_request_target event (e.g. feature-branch-1) +# GITHUB_HEAD_REF= + +# Always true when GitHub Actions is running the workflow. Use this to differentiate local vs GitHub Actions runs. GITHUB_ACTIONS=true -###################################################################### -# Returns the API URL. For example: `https://api.github.com`. # -###################################################################### -GITHUB_API_URL="https://api.github.com" +# Always true +CI=true -###################################################################### -# The name of the base ref or target branch of the pull request in a # -# workflow run. This is only set when the event that triggers a # -# workflow run is either pull_request or pull_request_target. For # -# example, `main`. # -###################################################################### -# GITHUB_BASE_REF="" +# Enable step debug logging +ACTIONS_STEP_DEBUG=true -###################################################################### -# The name of the event that triggered the workflow. For example, # -# `workflow_dispatch`. # -###################################################################### -# GITHUB_EVENT_NAME="" - -###################################################################### -# The path to the file on the runner that contains the full event # -# webhook payload. For example, `/github/workflow/event.json`. # -###################################################################### -# GITHUB_EVENT_PATH="" - -###################################################################### -# The head ref or source branch of the pull request in a workflow # -# run. This property is only set when the event that triggers a # -# workflow run is either pull_request or pull_request_target. For # -# example, `feature-branch-1`. # -###################################################################### -# GITHUB_HEAD_REF="" - -###################################################################### -# The fully-formed ref of the branch or tag that triggered the # -# workflow run. For workflows triggered by push, this is the branch # -# or tag ref that was pushed. For workflows triggered by # -# pull_request, this is the pull request merge branch. For workflows # -# triggered by release, this is the release tag created. For other # -# triggers, this is the branch or tag ref that triggered the # -# workflow run. This is only set if a branch or tag is available for # -# the event type. The ref given is fully-formed, meaning that for # -# branches the format is refs/heads/. For pull requests # -# events except pull_request_target, it is # -# refs/pull//merge. pull_request_target events have the # -# ref from the base branch. For tags it is refs/tags/. For # -# example, refs/heads/feature-branch-1. # -###################################################################### -# GITHUB_REF="" - -###################################################################### -# The short ref name of the branch or tag that triggered the # -# workflow run. This value matches the branch or tag name shown on # -# GitHub. For example, `feature-branch-1`. For pull requests, the # -# format is `/merge`. # -###################################################################### -# GITHUB_REF_NAME="" - -###################################################################### -# `true` if branch protections or rulesets are configured for the # -# ref that triggered the workflow run. # -###################################################################### -# GITHUB_REF_PROTECTED="" - -###################################################################### -# The type of ref that triggered the workflow run. Valid values are # -# `branch` or `tag`. # -###################################################################### -# GITHUB_REF_TYPE="" - -###################################################################### -# The number of days that workflow run logs and artifacts are kept. # -# For example, 90. # -###################################################################### -GITHUB_RETENTION_DAYS="90" - -###################################################################### -# A unique number for each attempt of a particular workflow run in a # -# repository. This number begins at `1` for the workflow run's first # -# attempt, and increments with each re-run. For example, `3`. # -###################################################################### -GITHUB_RUN_ATTEMPT="1" - -###################################################################### -# A unique number for each run of a particular workflow in a # -# repository. This number begins at `1` for the workflow's first # -# run, and increments with each new run. This number does not # -# change if you re-run the workflow run. For example, `3`. # -###################################################################### -GITHUB_RUN_NUMBER="1" - -###################################################################### -# The URL of the GitHub server. For example: `https://github.com`. # -###################################################################### -GITHUB_SERVER_URL="https://github.com" - -###################################################################### -# The username of the user that initiated the workflow run. If the # -# workflow run is a re-run, this value may differ from # -# `github.actor`. Any workflow re-runs will use the privileges of # -# `github.actor`, even if the actor initiating the re-run # -# (`github.triggering_actor`) has different privileges. # -###################################################################### -# GITHUB_TRIGGERING_ACTOR="" - -###################################################################### -# The name of the workflow. For example, `My test workflow``. If the # -# workflow file doesn't specify a name, the value of this variable # -# is the full path of the workflow file in the repository. # -###################################################################### -GITHUB_WORKFLOW="Local Action" - -###################################################################### -# The ref path to the workflow. # -###################################################################### -# GITHUB_WORKFLOW_REF="" - -###################################################################### -# The commit SHA for the workflow file. # -###################################################################### -# GITHUB_WORKFLOW_SHA="" - -###################################################################### -# The default working directory on the runner for steps, and the # -# default location of your repository when using the checkout # -# action. For example, `/home/runner/work/my-repo-name/repo-name`. # -###################################################################### -# GITHUB_WORKSPACE="" - -###################################################################### -# The architecture of the runner executing the job. Possible values # -# are `X86`, X6`4, `ARM`, or `ARM64`. # -###################################################################### -# RUNNER_ARCH="" - -###################################################################### -# This is set only if debug logging is enabled, and always has the # -# value of 1. It can be useful as an indicator to enable additional # -# debugging or verbose logging in your own job steps. Default is # -# normally not set, but it is set to `1` for local debugging # -# purposes. # -###################################################################### -RUNNER_DEBUG="1" - -###################################################################### -# The environment of the runner executing the job. Possible values # -# are: github-hosted for GitHub-hosted runners provided by GitHub, # -# and self-hosted for self-hosted runners configured by the # -# repository owner. # -###################################################################### -RUNNER_ENVIRONMENT="github-hosted" - -###################################################################### -# The name of the runner executing the job. This name may not be # -# unique in a workflow run as runners at the repository and # -# organization levels could use the same name. For example, # -# `Hosted Agent`. # -###################################################################### +# Runner name RUNNER_NAME="Local Action" -###################################################################### -# The operating system of the runner executing the job. Possible # -# values are `Linux`, `Windows`, or `macOS`. For example, `Windows`. # -###################################################################### -# RUNNER_OS="" +# Runner environment: github-hosted, self-hosted +RUNNER_ENVIRONMENT="github-hosted" -###################################################################### -# The path to a temporary directory on the runner. This directory is # -# emptied at the beginning and end of each job. Note that files will # -# not be removed if the runner's user account does not have # -# permission to delete them. For example, `D:\a\_temp`. # -###################################################################### -# RUNNER_TEMP="" +# Runner OS: Linux, Windows, macOS +# RUNNER_OS= -###################################################################### -# The path to the directory containing preinstalled tools for # -# GitHub-hosted runners. For more information, see Using # -# GitHub-hosted runners. For example, `C:\hostedtoolcache\windows`. # -###################################################################### -# RUNNER_TOOL_CACHE="" +# Runner architecture: X86, X64, ARM, ARM64 +# RUNNER_ARCH= + +# Path to a temporary directory, emptied at start and end of each job +# RUNNER_TEMP= + +# Set to 1 when debug logging is enabled which can be useful for additional debugging logging. +RUNNER_DEBUG=1 + +# Local workspace root used for any files created by your action as well as any environment files that are created automatically. Required if action uses @actions/artifact or @actions/cache. +LOCAL_ACTION_WORKSPACE= + +# Local path where artifacts will be saved. Required if action uses @actions/artifact. +LOCAL_ACTION_ARTIFACT_PATH= + +# Local path where caches will be read or saved. Required if action uses @actions/cache. +LOCAL_ACTION_CACHE_PATH= + +# Default working directory and repo checkout location when using the checkout action. +# GITHUB_WORKSPACE= + +# GitHub API URL +GITHUB_API_URL=https://api.github.com + +# GitHub server URL +GITHUB_SERVER_URL=https://github.com