Skip to content

austenstone/job-id

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

Get Job ID Action

GitHub doesn't provide the job id anywhere so here's a simple action to get the job id for the current job.

Usage

Calling the action in the job you want to get the job id for. Provide an ID for the step so you can reference the output.

Example

jobs:
  run:
    runs-on: ubuntu-latest
    steps:
      - uses: austenstone/job-id@v1
        id: job-id
      - run: echo $GITHUB_JOB_ID
        env:
          GITHUB_JOB_ID: ${{ steps.job-id.outputs.job-id }}

➡️ Inputs

Various inputs are defined in action.yml:

Name Description Default
github‑token Token to use to authorize. ${{ github.token }}

⬅️ Outputs

Name Description
job-id The job id for the current job.

Further help

To get more help on the Actions see documentation.

About

Get the GitHub Actions job id as job_id

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Contributors