Skip to content

Conversation

@anden-dev
Copy link

@anden-dev anden-dev commented Mar 5, 2024

Add support for GHE

https://docs.github.com/en/actions/learn-github-actions/variables

GITHUB_API_URL | Returns the API URL. For example: https://api.github.com.

@ghost
Copy link

ghost commented Jun 19, 2024

Just attempted to use this action in a Github Enterprise workflow, encountered error due to the action trying to hit api.github.com.

image

@anden-dev were you able to find a way to use this action in GHE? Or did you decide on another package/strategy?

@anden-dev
Copy link
Author

@stevetoro
Yes, I have this action with my proposed change running on GHE.

The variable is documented, you can check your GHE version's documentation or add a step like this to verify

   steps:
      - name: Echo GITHUB_API_URL
        run: echo $GITHUB_API_URL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant