Skip to content

Commit

Permalink
Download binary from peakon fork
Browse files Browse the repository at this point in the history
paymand committed Jul 17, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 8eb7ca7 commit 0254e6e
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test-action.yml
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@ jobs:

steps:
- name: Get GITHUB_TOKEN for Github Apps
uses: nabeken/go-github-apps@v0
uses: peakon/go-github-apps@v0
id: go-github-apps
with:
installation_id: ${{ secrets.installation_id }}
@@ -33,7 +33,7 @@ jobs:

steps:
- name: Get GITHUB_TOKEN for Github Apps
uses: nabeken/go-github-apps@v0
uses: peakon/go-github-apps@v0
id: go-github-apps
with:
installation_id: ${{ secrets.installation_id }}
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# go-github-apps

[![Go](https://github.com/nabeken/go-github-apps/actions/workflows/go.yml/badge.svg)](https://github.com/nabeken/go-github-apps/actions/workflows/go.yml)
[![Test Action](https://github.com/nabeken/go-github-apps/actions/workflows/test-action.yml/badge.svg)](https://github.com/nabeken/go-github-apps/actions/workflows/test-action.yml)
[![Go](https://github.com/peakon/go-github-apps/actions/workflows/go.yml/badge.svg)](https://github.com/peakon/go-github-apps/actions/workflows/go.yml)
[![Test Action](https://github.com/peakon/go-github-apps/actions/workflows/test-action.yml/badge.svg)](https://github.com/peakon/go-github-apps/actions/workflows/test-action.yml)

`go-github-apps` is a command-line tool to retrieve a Github Apps Installation Token.

@@ -64,15 +64,15 @@ If you install the app for multiple organizations and/or users, you may see mult

## Installation

https://github.com/nabeken/go-github-apps/releases
https://github.com/peakon/go-github-apps/releases

## Installation for continuous integration

`install-via-release.sh` allows you to grab the binary into the current working directory so that you can easy integrate it into your pipiline.

**Example**:
```sh
curl -sSLf https://raw.githubusercontent.com/nabeken/go-github-apps/master/install-via-release.sh | bash -s -- -v v0.0.3
curl -sSLf https://raw.githubusercontent.com/peakon/go-github-apps/master/install-via-release.sh | bash -s -- -v v0.0.3
sudo cp go-github-apps /usr/local/bin
```

@@ -83,7 +83,7 @@ You can automate issuing a token with Github Actions.
Example:
```yml
- name: Get GITHUB_TOKEN for Github Apps
uses: nabeken/go-github-apps@v0
uses: peakon/go-github-apps@v0
id: go-github-apps
with:
installation_id: ${{ secrets.installation_id }}
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@ runs:
using: "composite"
steps:
- run: |
curl -sSLf https://raw.githubusercontent.com/nabeken/go-github-apps/master/install-via-release.sh | bash -s -- -v v${{ inputs.version }}
curl -sSLf https://raw.githubusercontent.com/peakon/go-github-apps/master/install-via-release.sh | bash -s -- -v v${{ inputs.version }}
sudo cp go-github-apps /usr/local/bin
shell: bash
- id: go-github-apps
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/nabeken/go-github-apps
module github.com/peakon/go-github-apps

go 1.14

2 changes: 1 addition & 1 deletion install-via-release.sh
Original file line number Diff line number Diff line change
@@ -56,7 +56,7 @@ if [ -z "${VERSION}" ]; then
exit 1
fi

BASE_URL="https://github.com/nabeken/go-github-apps/releases/download/${VERSION}"
BASE_URL="https://github.com/peakon/go-github-apps/releases/download/${VERSION}"
URL="${BASE_URL}/go-github-apps_${VERSION#v}_$(get_os)_$(get_arch).tar.gz"

shift $((OPTIND - 1))

0 comments on commit 0254e6e

Please sign in to comment.