Prompt Buddy logoPrompt Buddy

github · GitHub Actions Docs

Actions Store information in variables - GitHub Docs

Teaches how to define, assign, and access environment and workflow variables within GitHub Actions workflows to manage dynamic data.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Actions Store information in variables - GitHub Docs

Teaches how to define, assign, and access environment and workflow variables within GitHub Actions workflows to manage dynamic data.

When To Use

Use when you need to parameterize workflow steps, manage environment-specific configurations, or pass dynamic values between different parts of a GitHub Actions run.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/actions-how-tos-write-workflows-store-information-in-variables-github-do-workflow-guide.mdA guide explaining how to define and use environment variables and configuration variables within GitHub Actions workflows.Questions about a guide explaining how to define and use environment variables and configuration variables within GitHub Actions work...
examples/actions-how-tos-write-workflows-store-information-in-variables-github-do.textA GitHub Actions workflow YAML example demonstrating how to define and access environment variables at the workflow and job levels.Exact payloads, commands, or snippets shown in A GitHub Actions workflow YAML example demonstrating how to define and access environment variables at the workflow a...
examples/actions-how-tos-write-workflows-store-information-in-variables-github-do-2.textA GitHub Actions workflow demonstrating how to use conditional logic to set and access environment variables.Exact payloads, commands, or snippets shown in A GitHub Actions workflow demonstrating how to use conditional logic to set and access environment variables.
examples/actions-how-tos-write-workflows-store-information-in-variables-github-do-3.textA GitHub Actions workflow example demonstrating how to access and echo environment variables within a run step.Exact payloads, commands, or snippets shown in A GitHub Actions workflow example demonstrating how to access and echo environment variables within a run step.
examples/actions-how-tos-write-workflows-store-information-in-variables-github-do-4.textA YAML workflow example demonstrating how to use the vars context to access configuration variables in environment variables, job names, and conditional statements.Exact payloads, commands, or snippets shown in A YAML workflow example demonstrating how to use the vars context to access configuration variables in environment va...
examples/actions-how-tos-write-workflows-store-information-in-variables-github-do-5.textA GitHub Actions workflow YAML example demonstrating how to use conditional logic based on the runner operating system to echo environment variables.Exact payloads, commands, or snippets shown in A GitHub Actions workflow YAML example demonstrating how to use conditional logic based on the runner operating syste...

What This Skill Covers

    • GitHub Actions / - How-tos / - Write workflows / - Choose what workflows do / - Use variables
  • Main sections: In this article, Defining environment variables for a single workflow, Defining configuration variables for multiple workflows, Creating configuration variables for a repository, Creating configuration variables for an environment.

Workflow

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. Do not add behavior or configuration that is not present in the attached source files.

Canonical source: https://docs.github.com/en/actions/how-tos/write-workflows/choose-what-workflows-do/use-variables