765 Search results for "runs-on"
REST API / Authentication /
Authenticating to the REST API
information about the path, see Getting started with the REST API.
jobs:
use_api:
runs-on: ubuntu-latest
permissions: {}
steps:
- env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN
GitHub Actions / Use cases and examples / Project management /
Commenting on an issue when a label is added
labeled
jobs:
add-comment:
if: github.event.label.name == 'help wanted'
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Add comment
run:
GitHub Actions / Use cases and examples / Build and test /
Building and testing .NET
Using multiple .NET versions
name: dotnet package
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
dotnet-version: [ '3.1.x', '6.0.x' ]
steps:
Apps / Creating GitHub Apps / Authenticate with a GitHub App /
Making authenticated API requests with a GitHub App in a GitHub Actions workflow
private key.
YAML
on:
workflow_dispatch:
jobs:
demo_app_authentication:
runs-on: ubuntu-latest
steps:
- name: Generate a token
id: generate-token
uses:
GitHub Actions / Security / Security harden deployments /
Configuring OpenID Connect in HashiCorp Vault
example: secret/data/production/ci npmToken.
YAML
jobs:
retrieve-secret:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name:
GitHub Actions / Use cases and examples / Build and test /
Building and testing Swift
[ubuntu-latest, macos-latest]
swift: ["5.2", "5.3"]
runs-on: ${{ matrix.os }}
steps:
- uses: swift-actions/setup-swift@65540b95f514
GitHub Actions / Use cases and examples / Project management /
Closing inactive issues
issues
on:
schedule:
- cron: "30 1 * * *"
jobs:
close-issues:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
-
GitHub Actions / Share automations / Create actions /
Creating a JavaScript 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:
- name: Hello world action
GitHub Packages / Managing GitHub packages with workflows /
Publishing and installing a package with GitHub Actions
on the latest available version of Ubuntu.
jobs:
build-and-push-image:
runs-on: ubuntu-latest
# Sets the permissions granted to the `GITHUB_TOKEN` for
GitHub Actions / Security / Security harden deployments /
Configuring OpenID Connect in Azure
[push]
permissions:
id-token: write
contents: read
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: 'Az CLI login'
uses: azure/login@a1b2c3d4