765 Search results for "runs-on"
GitHub Actions / Share automations /
Creating workflow templates for your organization
$default-branch ]
pull_request:
branches: [ $default-branch ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run a one-line
GitHub Actions / Migrate to GitHub Actions / Manual migrations /
Migrating from Jenkins to GitHub Actions
Actions workflow.
Jenkins Directives
GitHub Actions
agent
jobs.<job_id>.runs-on jobs.<job_id>.container
post
None
stages
jobs
steps
jobs.<job_id>
GitHub Actions / Use cases and examples / Project management /
Scheduling issue creation
schedule:
- cron: 20 07 * * 1
jobs:
create_issue:
name: Create team sync issue
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Create team sync
GitHub Actions / Use cases and examples / Deployment /
Deploying to Azure Kubernetes Service
# set this to an array of override file paths
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Azure Login
uses:
GitHub Actions / Use cases and examples / Deployment /
Installing an Apple certificate on macOS runners for Xcode development
on the runner.
YAML
name: App build
on: push
jobs:
build_with_signing:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
GitHub Actions / Share automations / Create actions /
Creating a composite action
who-to-greet input with your name.
YAML
on: [push]
jobs:
hello_world_job:
runs-on: ubuntu-latest
name: A job to say hello
steps:
- uses: actions/checkout@v4
GitHub Actions / Write workflows / Choose what workflows do /
Control the concurrency of workflows and jobs
concurrency keyword at the job level:
on:
push:
branches:
- main
jobs:
job-1:
runs-on: ubuntu-latest
concurrency:
group: example-group
cancel-in-progress: true
GitHub Actions / Write workflows / Choose what workflows do /
Setting a default shell and working directory
workflow.
Example: Setting default run step options for a job
jobs:
job1:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: ./scripts
GitHub Actions / Write workflows / Choose what workflows do /
Using jobs in a workflow
<job_id>.needs keyword.
Each job runs in a runner environment specified by runs-on.
You can run an unlimited number of jobs as long as you are within the workflow
Code security / Code scanning / Integrate with code scanning /
Uploading a SARIF file to GitHub
Thursday at 15:45 UTC.
on:
push:
schedule:
- cron: '45 15 * * 4'
jobs:
build:
runs-on: ubuntu-latest
permissions:
# required for all workflows
security-events: