Skip to content

Commit

Permalink
Merge pull request #3 from TSenter/senter-support-ghe
Browse files Browse the repository at this point in the history
  • Loading branch information
kategengler authored Oct 2, 2024
2 parents 5b33924 + c98ba88 commit a8f939b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ runs:
git config user.email "${{ inputs.commit-email }}"
git add .
git commit -m "${{ inputs.commit-message }}"
git push --force "https://${{ github.actor }}:${{ inputs.token }}@github.com/${{ github.repository }}" main:${{ inputs.branch }}
REMOTE=$(echo "${{ github.server_url }}" | sed 's/\(https\?:\/\/\)\(.*\)/\1${{ github.actor }}:${{ inputs.token }}@\2/')
git push --force "$REMOTE/${{ github.repository }}" main:${{ inputs.branch }}
working-directory: ${{ inputs.working-directory }}
- name: 'Cleanup'
shell: 'bash'
Expand Down

0 comments on commit a8f939b

Please sign in to comment.