Skip to main content

825 Search results for "runs-on"

GitHub Actions / Reference /

Workflow syntax for GitHub Actions

schedule: - cron: '30 5 * * 1,3' - cron: '30 5 * * 2,4' jobs: test_schedule: runs-on: ubuntu-latest steps: - name: Not on Monday or Wednesday if: github.event

GitHub Actions / GitHub-hosted runners / Using larger runners /

Running jobs on larger runners

instances for processing. To run jobs on macOS larger runners, update the runs-on key in your workflow YAML files to use one of the GitHub-defined labels

GitHub Actions / Write workflows / Choose what workflows do /

Running variations of jobs in a workflow

each combination of the os and version variables. Each job will set the runs-on value to the current os value and will pass the current version value to

GitHub Actions / Reference /

Accessing contextual information about workflow runs

CI on: push jobs: prod-check: if: ${{ github.ref == 'refs/heads/main' }} runs-on: ubuntu-latest steps: - run: echo "Deploying to production server on

GitHub Actions / Write workflows / Choose where workflows run /

Running jobs in a container

not set a container, all steps will run directly on the host specified by runs-on unless a step refers to an action configured to run in a container. Note

GitHub Actions / Self-hosted runners / Manage self-hosted runners /

Using self-hosted runners in a workflow

with that label. To specify a self-hosted runner for your job, configure runs-on in your workflow file with self-hosted runner labels. Self-hosted runners

Secure coding / Dependabot / Work with Dependabot /

Automating Dependabot with GitHub Actions

pull_request permissions: pull-requests: write issues: write jobs: dependabot: runs-on: ubuntu-latest if: github.event.pull_request.user.login == 'dependabot[bot]'

Secure coding / Code scanning / Create advanced setup /

Running CodeQL code scanning in a container

branches: [main] schedule: - cron: '15 5 * * 3' jobs: analyze: name: Analyze runs-on: ubuntu-latest permissions: security-events: write actions: read strategy:

GitHub Actions / Write workflows / Choose what workflows do /

Storing and sharing data from a workflow

as another artifact. YAML name: Node CI on: [push] jobs: build_and_test: runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v4

GitHub Actions / Use cases and examples / Containerized services /

Creating PostgreSQL service containers

job container-job: # Containers must run in Linux based operating systems runs-on: ubuntu-latest # Docker Hub image that `container-job` executes in container: