Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 996 Bytes

README.md

File metadata and controls

42 lines (28 loc) · 996 Bytes

Get Repository Global Node ID action

This action gets the global node ID of the specified GitHub repository.

It can be used in other actions, to make calls to the GitHub GraphQL API.

Note that the global node ID of a repository is not the same as its repository ID (i.e., GITHUB_REPOSITORY_ID).

Inputs

repository

A repository to get its ID. Default ${{ github.repository }}.

token

GitHub token. Defaults ${{ github.token }}.

Outputs

repo-id

The global node ID of the specified repository.

Example usage

- name: Get global node ID
  id: get-repo-id
  uses: nvdaes/get-repository-id@v1
  with:
    repository: owner/repo

- name: Print Output
  id: output
  run: echo "${{ steps.get-repo-id.outputs.repo-id }}"