Skip to content

Commit

Permalink
fix: Uses correct generated token when checking out cli repo in release
Browse files Browse the repository at this point in the history
fix: correct spacing in .github/workflows

Signed-off-by: John McBride <[email protected]>
  • Loading branch information
jpmcb committed Sep 27, 2023
1 parent b5d6ab3 commit f1cf8ba
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@ jobs:
with:
app_id: ${{ secrets.OS_GITHUB_APP_ID }}
private_key: ${{ secrets.OS_GITHUB_APP_PRIVATE_KEY }}

- name: "☁️ checkout repository"
uses: actions/checkout@v3
with:
fetch-depth: 0

token: ${{ steps.generate_token.outputs.token }}

- name: "🔧 setup node"
uses: actions/setup-node@v3
with:
Expand All @@ -43,7 +45,6 @@ jobs:
outputs:
release-tag: ${{ steps.semantic-release.outputs.release-tag }}


build:
needs:
- release
Expand Down Expand Up @@ -75,3 +76,4 @@ jobs:
-ldflags="-X 'github.com/open-sauced/pizza-cli/pkg/utils.Sha=$(git rev-parse HEAD)'" \
-o build/pizza-${{ matrix.goos }}-${{ matrix.goarch }}
gh release upload ${{ needs.release.outputs.release-tag }} build/pizza-${{ matrix.goos }}-${{ matrix.goarch }}

0 comments on commit f1cf8ba

Please sign in to comment.