Skip to main content

765 Search results for "runs-on"

GitHub Actions / Write workflows /

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 /

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 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 / 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

Code security / Dependabot / Work with Dependabot /

Automating Dependabot with GitHub Actions

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

Code security / 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 / 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:

GitHub Actions / Use cases and examples / Containerized services /

Creating Redis 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:

GitHub Actions / Use cases and examples /

Creating an example workflow

actor }} is learning GitHub Actions on: [push] jobs: check-bats-version: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4