Skip to content

Commit

Permalink
[CI] Release the CLI (#330)
Browse files Browse the repository at this point in the history
Checkout using token in release.yaml
  • Loading branch information
alyssadai authored Jul 19, 2024
1 parent e8c4a27 commit 31e045f
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,25 @@ jobs:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
steps:
- name: Generate a token
id: generate-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ vars.NB_CHEF_BOT_ID }}
private-key: ${{ secrets.NB_CHEF_BOT_KEY }}

- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ steps.generate-token.outputs.token }}

- name: Download latest auto
run: |
auto_download_url="$(curl -fsSL https://api.github.com/repos/intuit/auto/releases/latest | jq -r '.assets[] | select(.name == "auto-linux.gz") | .browser_download_url')"
wget -O- "$auto_download_url" | gunzip > ~/auto
chmod a+x ~/auto
- name: Generate a token
id: generate-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ vars.NB_CHEF_BOT_ID }}
private-key: ${{ secrets.NB_CHEF_BOT_KEY }}

- name: Release
run: ~/auto shipit -vv
env:
Expand Down

0 comments on commit 31e045f

Please sign in to comment.