Skip to content

What does jobs.<job_id>.with.<with_id> match? #148153

Answered by Kik07L
rhysd asked this question in Actions
Discussion options

You must be logged in to vote

The jobs.<job_id>.with.<with_id> syntax you mentioned does not match any standard syntax in GitHub Actions workflows. The correct syntax for specifying inputs to a job or a step within a job is jobs.<job_id>.with.

Job-level inputs: GitHub Actions does not support with at the job level. Inputs are typically specified at the step level within a job.

Step-level inputs: The with keyword is used to pass inputs to an action or a script within a step.

Example of using with at the step level:

name: Example Workflow

on: [push]

jobs:
example-job:
runs-on: ubuntu-latest

steps:
  - name: Checkout repository
    uses: actions/checkout@v2

  - name: Run a script
    run: echo "Hello, world!"

  - name:…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@rhysd
Comment options

@Kik07L
Comment options

@rhysd
Comment options

Answer selected by rhysd
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Build, test, and automate your deployment pipeline with world-class CI/CD Question
3 participants