From 0254e6e2c595cefce3a5f051199b50061a155a02 Mon Sep 17 00:00:00 2001 From: Payman Delshad Date: Mon, 17 Jul 2023 16:59:57 +0200 Subject: [PATCH] Download binary from peakon fork --- .github/workflows/test-action.yml | 4 ++-- README.md | 10 +++++----- action.yml | 2 +- go.mod | 2 +- install-via-release.sh | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/test-action.yml b/.github/workflows/test-action.yml index 1c133bf..cd12622 100644 --- a/.github/workflows/test-action.yml +++ b/.github/workflows/test-action.yml @@ -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 }} diff --git a/README.md b/README.md index 273eb4c..bd258f4 100644 --- a/README.md +++ b/README.md @@ -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,7 +64,7 @@ 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 @@ -72,7 +72,7 @@ https://github.com/nabeken/go-github-apps/releases **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 }} diff --git a/action.yml b/action.yml index 0cc96ef..b918b03 100644 --- a/action.yml +++ b/action.yml @@ -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 diff --git a/go.mod b/go.mod index 11e55b8..4f8feea 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/nabeken/go-github-apps +module github.com/peakon/go-github-apps go 1.14 diff --git a/install-via-release.sh b/install-via-release.sh index 9464149..1aa57d2 100755 --- a/install-via-release.sh +++ b/install-via-release.sh @@ -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))