Skip to content

Commit

Permalink
added gh cli to image
Browse files Browse the repository at this point in the history
  • Loading branch information
Bullrich committed Jun 5, 2024
1 parent 4ea27e6 commit 53e7c43
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/command-fmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,18 @@ jobs:
volumes:
- my_docker_volume:/volume_mount
steps:
- name: Install gh
run: |
(type -p wget >/dev/null || (sudo apt update && sudo apt-get install wget -y)) \
&& sudo mkdir -p -m 755 /etc/apt/keyrings \
&& wget -qO- https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \
&& sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
&& sudo apt update \
&& sudo apt install gh -y
sudo apt update
sudo apt install gh
- name: Download repo
uses: actions/checkout@v4
- run: gh pr checkout ${{ inputs.pr }}
Expand Down

0 comments on commit 53e7c43

Please sign in to comment.