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
).
A repository to get its ID. Default ${{ github.repository }}
.
GitHub token. Defaults ${{ github.token }}
.
The global node ID of the specified repository.
- 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 }}"