Skip to content

asml-actions-validation/actions--context

 
 

Repository files navigation

Enhanced Job Context   Actions starline

This action provides additinal contextual job informations like the current job id, environment, deployment url and more.

Note

This action also works with matrix jobs as well as within reusable workflows!

Usage

jobs:
  example:
    runs-on: ubuntu-latest
    environment: playground
    steps:
      - uses: qoomon/actions--context@v4

      - run: |
          echo "Job Log URL:    ${GITHUB_JOB_HTML_URL}"
          echo "Environment:    ${GITHUB_ENVIRONMENT}"
          echo "Deployment URL: ${GITHUB_DEPLOYMENT_HTML_URL}"

Environment Variables

  • GITHUB_RUN_ID

    • The workflow run id of the current job.
  • GITHUB_RUN_ATTEMPT

    • The workflow run attempt of the current job.
  • GITHUB_RUN_NUMBER

    • The workflow run number of the current job.
  • GITHUB_RUN_HTML_URL

    • The workflow run HTML url of the current job.
  • GITHUB_JOB_NAME

    • The workflow run job name of the current job.
  • GITHUB_JOB_CHECK_RUN_ID

    • The workflow run job check run id of the current job.
  • GITHUB_JOB_HTML_URL

    • The workflow run jub HTML url of the current job.
  • GITHUB_ENVIRONMENT

    • The job environment of the current job.
  • GITHUB_ENVIRONMENT_HTML_URL

    • The job environment HTML url of the current job.
  • GITHUB_DEPLOYMENT_ID

    • The deployment id of the current job.
  • GITHUB_DEPLOYMENT_HTML_URL

    • The deployment HTML url of the current job.
  • RUNNER_NAME

    • The runner name of the current job.
  • RUNNER_ID

    • The runner id of the current job.

Outputs Variables

  run_id:
    description: The workflow run id of the current job.
  run_attempt:
    description: The workflow run attempt of the current job.
  run_number:
    description: The workflow run number of the current job.
  run_html_url:
    description: The workflow run HTML url of the current job.

  job_name:
    description: The workflow run job name of the current job.
  job_check_run_id:
    description: The workflow run job check run id of the current job.
  job_html_url:
    description: The workflow run jub HTML url of the current job.

  environment:
    description: The job environment of the current job.
  environment_html_url:
    description: The job environment HTML url of the current job.

  deployment_id:
    description: The deployment id of the current job.
  deployment_html_url:
    description: The deployment HTML url of the current job.

  runner_name:
    description: The runner name of the current job.
  runner_id:
    description: The runner id of the current job.

Development

Release New Action Version

  • Trigger the Release workflow
    • The workflow will create a new release with the given version and also move the related major version tag e.g. v1 to point to this new release

About

Access additional job context informations like current job details (log url, environment, ...) and current deployment details.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • TypeScript 96.1%
  • JavaScript 3.9%