Skip to content

NodeJS-contained action for getting the jobId from a Github workflow job run

License

Notifications You must be signed in to change notification settings

daleyjem/gh-job-id

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

Repository files navigation

Description

NodeJS-contained action for getting the job_id and html_url from a Github workflow job run. This uses a similar logic as Tiryoh/gha-jobid-action, but is contained in such a way that the runner doesn't need to have things like curl or jq installed.

Simple Usage

name: Verifications
on:
  push:
    branches:
      - main

jobs:
  manual-check:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v4
        
      - name: Get job info
        id: my_action
        uses: daleyjem/gh-job-id@v1
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          job_name: "manual-check"
          
      - name: Output our action
        run: echo ${{ steps.my_action.outputs.job_id }} - ${{ steps.my_action.outputs.html_url }}

About

NodeJS-contained action for getting the jobId from a Github workflow job run

Resources

License

Stars

Watchers

Forks

Packages

No packages published