Skip to content

Commit

Permalink
Try to use secret usage and interpolation
Browse files Browse the repository at this point in the history
Signed-off-by: Douglas Camata <[email protected]>
  • Loading branch information
douglascamata committed Aug 30, 2023
1 parent 6aa6c83 commit afff4f3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,14 @@ runs:
brew update --preinstall
shell: bash
- name: Install Colima
env:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
LIMA_VERSION=$(curl -fsSL --header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' https://api.github.com/repos/lima-vm/lima/releases/latest | jq -r .tag_name)
LIMA_VERSION=$(curl -fsSL --header 'authorization: Bearer ${TOKEN}' https://api.github.com/repos/lima-vm/lima/releases/latest | jq -r .tag_name)
curl -fsSL "https://github.com/lima-vm/lima/releases/download/${LIMA_VERSION}/lima-${LIMA_VERSION:1}-$(uname -s)-$(uname -m).tar.gz" | tar Cxzvm /usr/local
# download binary
COLIMA_VERSION=$(curl -fsSL --header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' https://api.github.com/repos/abiosoft/colima/releases/latest | jq -r .tag_name)
COLIMA_VERSION=$(curl -fsSL --header 'authorization: Bearer ${TOKEN}' https://api.github.com/repos/abiosoft/colima/releases/latest | jq -r .tag_name)
curl -LO https://github.com/abiosoft/colima/releases/download/${COLIMA_VERSION}/colima-$(uname)-$(uname -m)
# install in $PATH
Expand Down

0 comments on commit afff4f3

Please sign in to comment.