765 Search results for "runs-on"
GitHub Actions / Security / Security guides /
Using secrets in GitHub Actions
name: Workflows with large secrets
on: push
jobs:
my-job:
name: My Job
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Decrypt large
GitHub Actions / Migrate to GitHub Actions / Manual migrations /
Migrating from GitLab CI/CD to GitHub Actions
jobs on different platforms, while in GitHub Actions it is done with the runs-on key.
Below is an example of the syntax for each system.
GitLab CI/CD syntax
GitHub Actions / Write workflows / Choose what workflows do /
Using GitHub CLI in workflows
YAML
name: Comment when opened
on:
issues:
types:
- opened
jobs:
comment:
runs-on: ubuntu-latest
steps:
- run: gh issue comment $ISSUE --body "Thank
GitHub Actions / Self-hosted runners / Actions Runner Controller /
Using Actions Runner Controller runners in a workflow
scale set, you can specify the name of the scale set as the value for the runs-on key in your GitHub Actions workflow file.
For example, the following configuration
GitHub Actions / GitHub-hosted runners / About GitHub-hosted runners /
Customizing GitHub-hosted runners
apt package as part of a job.
name: Build on Ubuntu
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
GitHub Actions / Migrate to GitHub Actions / Manual migrations /
Migrating from Azure Pipelines to GitHub Actions
PowerShell"
GitHub Actions syntax for script steps
jobs:
scripts:
runs-on: windows-latest
steps:
- run: echo "This step runs in the default shell"
GitHub Actions / Write workflows / Choose what workflows do /
Adding scripts to your workflow
execute the command npm install -g bats on the runner.
jobs:
example-job:
runs-on: ubuntu-latest
steps:
- run: npm install -g bats
To use a workflow to run
GitHub Actions / Use cases and examples / Build and test /
Building and testing Python
of jobs in a workflow.
YAML
name: Python package
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["pypy3.10",
REST API /
Quickstart for GitHub REST API
octocat/Spoon-Knife repository.
YAML
on:
workflow_dispatch:
jobs:
use_api:
runs-on: ubuntu-latest
permissions:
issues: read
steps:
- env:
GH_TOKEN: ${{ secrets
Webhooks / Using webhooks /
Automatically redelivering failed deliveries for an organization webhook
#
jobs:
redeliver-failed-deliveries:
name: Redeliver failed deliveries
runs-on: ubuntu-latest
steps:
# This workflow will run a script that is stored in