Skip to content

Commit

Permalink
ability to specify the github hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
petrosandreou committed Jul 14, 2023
1 parent ee09a42 commit fb2617c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: "project beta automations"
description: 'GitHub ProjectV2/Project-Beta automation. It supports management of status and custom fields.'
inputs:
gh_host:
description: 'The hostname will be used by gh. This works for enterprise customers'
required: false
default: "api.github.com"
gh_token:
description: 'Permission token that grants permission to the GitHub API. (Toke or App config is required)'
required: false
Expand Down Expand Up @@ -84,7 +88,7 @@ runs:
- name: "Authenticate gh cli PAT"
if: inputs.gh_token != ''
shell: bash
run: echo "${{ inputs.gh_token }}" | gh auth login --with-token
run: echo "${{ inputs.gh_token }}" | gh auth login --with-token --hostname "${{ inputs.gh_host }}"

- name: "Check if User or Organization is set"
if: inputs.organization == '' && inputs.user == ''
Expand Down

0 comments on commit fb2617c

Please sign in to comment.