793 Search results for "runs-on"
Secure coding / Code scanning / Create advanced setup /
Customizing your advanced setup for code scanning
scanning actions.
YAML
jobs:
analyze:
name: Analyze
runs-on: [ubuntu-latest]
jobs:
analyze:
name: Analyze
runs-on: [ubuntu-latest]
If you choose to use a self-hosted
GitHub Actions / Use cases and examples / Build and test /
Building and testing PowerShell
Test PowerShell on Ubuntu
on: push
jobs:
pester-test:
name: Pester test
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
GitHub Actions / Use cases and examples / Deployment /
Deploying to Azure Static Web App
(github.event_name == 'pull_request' && github.event.action != 'closed')
runs-on: ubuntu-latest
name: Build and Deploy
steps:
- uses: actions/checkout@v4
GitHub Actions / Write workflows / Choose when workflows run /
Using conditions to control job execution
jobs:
production-deploy:
if: github.repository == 'octo-org/octo-repo-prod'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
GitHub Actions / Use cases and examples / Publish packages /
Publishing Node.js packages
name: Publish Package to npmjs
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses:
Secure coding / Supply chain security / Understand your supply chain /
Customizing your dependency review action configuration
"main" ]
permissions:
contents: read
jobs:
dependency-review:
runs-on: ubuntu-latest
steps:
- name: 'Checkout repository'
uses: actions/checkout@v4
GitHub Actions / Write workflows / Choose what workflows do /
Evaluate expressions in workflows and actions
job using an output and fromJSON.
YAML
name: build
on: push
jobs:
job1:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
GitHub Actions / Migrate to GitHub Actions / Automated migrations /
Migrating from Bitbucket Pipelines with GitHub Actions Importer
pull_requests
Supported
pipelines.tags
on.tags
Supported
runs-on
jobs.<job_id>.runs-on
Supported
script
job.<job_id>.steps[*].run
Supported
GitHub Actions / Write workflows / Choose what workflows do /
Using environments for deployment
production.
name: Deployment
on:
push:
branches:
- main
jobs:
deployment:
runs-on: ubuntu-latest
environment: production
steps:
- name: deploy
# ...deployment-specific
GitHub Actions / Use cases and examples / Deployment /
Deploying Node.js to Azure App Service
'14.x' # set this to the node version to use
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js