Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 860 Bytes

README.md

File metadata and controls

32 lines (26 loc) · 860 Bytes

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