Codefresh
codefresh.io › home › learning center › github actions › github actions workflows: basics, examples, and a quick tutorial
GitHub Actions Workflows: Basics, Examples, and a Quick Tutorial
July 21, 2023 - Workflows in GitHub Actions are written in YAML syntax. Hence, workflow files have either a .yml or .yaml extension.
Videos
08:04
How to use GitHub Actions | GitHub for Beginners - YouTube
05:25
GitHub Actions YAML Tutorial for Beginners (Workflow Syntax ...
09:27
Github Actions Certification - Identify the correct syntax for ...
31:38
E1 - GitHub Actions: Write your first workflow with GitHub APIs ...
23:17
GitHub Actions Step by Step DEMO for Beginners - YouTube
02:53
Github Actions Certification - Pass Inputs to your workflow - YouTube
GitHub
docs.github.com › en › actions › get-started › quickstart
Quickstart for GitHub Actions - GitHub Docs
At this stage you don't need to understand the details of this workflow. For now, you can just copy and paste the contents into the file. After completing this quickstart guide, you can learn about the syntax of workflow files in Workflows, and for an explanation of GitHub Actions contexts, such as ${{ github.actor }} and ${{ github.event_name }}, see Contexts reference.
GitHub
docs.github.com › en › actions › tutorials › create-an-example-workflow
Creating an example workflow - GitHub Docs
Groups together all the jobs that run in the learn-github-actions workflow. ... Defines a job named check-bats-version. The child keys will define properties of the job. ... Configures the job to run on the latest version of an Ubuntu Linux runner.
GitHub
docs.github.com › actions › using-workflows › workflow-syntax-for-github-actions
Workflow syntax for GitHub Actions - GitHub Docs
If you build the group name with a property that is only defined for specific events, you can use a fallback value. For example, github.head_ref is only defined on pull_request events. If your workflow responds to other events in addition to pull_request events, you will need to provide a fallback to avoid a syntax error.
GitHub
docs.github.com › en › actions › reference › workflows-and-actions › metadata-syntax
Metadata syntax reference - GitHub Actions
For example, if a workflow defined the num-octocats and octocat-eye-color inputs, the action code could read the values of the inputs using the INPUT_NUM-OCTOCATS and INPUT_OCTOCAT-EYE-COLOR environment variables.
GitHub
docs.github.com › en › enterprise-cloud@latest › actions › reference › workflows-and-actions › workflow-syntax
Workflow syntax for GitHub Actions - GitHub Enterprise Cloud Docs
Workflow files use YAML syntax, and must have either a .yml or .yaml file extension. If you're new to YAML and want to learn more, see Learn YAML in Y minutes. You must store workflow files in the .github/workflows directory of your repository.
GitHub
docs.github.com › en › actions › reference › workflows-and-actions › workflow-commands
Workflow commands for GitHub Actions - GitHub Docs
The actions/toolkit includes a number of functions that can be executed as workflow commands. Use the :: syntax to run the workflow commands within your YAML file; these commands are then sent to the runner over stdout.
GitHub
github.com › github › docs › blob › main › content › actions › reference › workflows-and-actions › workflow-syntax.md
docs/content/actions/reference/workflows-and-actions/workflow-syntax.md at main · github/docs
Workflow files use YAML syntax, and must have either a .yml or .yaml file extension. {% data reusables.actions.learn-more-about-yaml %} You must store workflow files in the .github/workflows directory of your repository.
Author github
GitHub
docs.github.com › en › actions › reference
Reference for GitHub Actions - GitHub Docs
Workflow syntax for GitHub Actions · Events that trigger workflows · Workflow commands for GitHub Actions · Variables reference · Evaluate expressions in workflows and actions · Contexts reference · Deployments and environments · Dependency caching reference ·
GitHub
docs.github.com › en › actions › reference › workflows-and-actions › contexts
Contexts reference - GitHub Docs
In order to use property dereference syntax, the property name must start with a letter or _ and contain only alphanumeric characters, -, or _. If you attempt to dereference a nonexistent property, it will evaluate to an empty string. GitHub Actions includes a collection of variables called contexts and a similar collection of variables called default variables. These variables are intended for use at different points in the workflow:
GeeksforGeeks
geeksforgeeks.org › git › github-workflows
GitHub Workflows - GeeksforGeeks
January 21, 2026 - Schedule: Triggers workflows at scheduled times using cron syntax. Jobs: Jobs are sets of steps that run on the same runner. Jobs can run in parallel or can be configured to run sequentially using the needs keyword. Steps: Steps are individual tasks within a job. Steps can run commands directly or use actions to perform tasks. Actions are reusable units of code that can be used to simplify your workflows. Runners: These are the servers that run your workflows. GitHub provides hosted runners for various operating systems, including Ubuntu, Windows, and macOS, or you can use self-hosted runners.
GitHub
docs.github.com › articles › getting-started-with-github-actions
Understanding GitHub Actions - GitHub Docs
Each job will run inside its own virtual machine runner, or inside a container, and has one or more steps that either run a script that you define or run an action, which is a reusable extension that can simplify your workflow.
GitHub
docs.github.com › en › actions
GitHub Actions documentation - GitHub Docs
Automate, customize, and execute your software development workflows right in your repository with GitHub Actions. You can discover, create, and share actions to perform any job you'd like, including CI/CD, and combine actions in a completely customized workflow.
GitHub
docs.github.com › en › actions › reference › workflows-and-actions › expressions
Evaluate expressions in workflows and actions - GitHub Docs
You can use the following status check functions as expressions in if conditionals. A default status check of success() is applied unless you include one of these functions. For more information about if conditionals, see Workflow syntax for GitHub Actions and Metadata syntax reference.
freeCodeCamp
freecodecamp.org › news › learn-to-use-github-actions-step-by-step-guide
Learn to Use GitHub Actions: a Step-by-Step Guide
January 16, 2025 - In this section, you’ll learn some of the most common syntax you’ll use to create your Actions. We’ll work with this example Action and go through it part by part below: # .github/workflows/demo.yml name: Github Action Template on: pull_request: branches: [ "main" ] schedule: - cron: '30 5,17 * * *' workflow_call: inputs: username: description: 'A username passed from the caller workflow' default: 'john-doe' required: false type: string permissions: actions: read|write|none # permissions : read|write|none # A workflow run is made up of one or more jobs that can run sequentially or in par
GitHub
docs.github.com › en › actions › how-tos › reuse-automations › reuse-workflows
Reuse workflows - GitHub Docs
You can use jobs.<job_id>.secrets in a calling workflow to pass named secrets to a directly called workflow. Alternatively, you can use jobs.<job_id>.secrets.inherit to pass all of the calling workflow's secrets to a directly called workflow. For more information, see the section Reuse workflows above, and the reference article Workflow syntax for GitHub Actions.
GitHub
docs.github.com › actions › using-workflows › events-that-trigger-workflows
Events that trigger workflows - GitHub Docs
For information about each activity type, see Webhook events and payloads. By default, all activity types trigger workflows that run on this event. You can limit your workflow runs to specific activity types using the types keyword. For more information, see Workflow syntax for GitHub Actions.