Skip to content

Commit

Permalink
replaced installation step for composite action
Browse files Browse the repository at this point in the history
  • Loading branch information
Bullrich committed Jun 6, 2024
1 parent 4a2dc63 commit cbc99f9
Showing 1 changed file with 5 additions and 18 deletions.
23 changes: 5 additions & 18 deletions .github/workflows/command-update-ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,25 +26,12 @@ jobs:
container:
image: ${{ needs.set-image.outputs.IMAGE }}
steps:
- name: Install gh cli
run: |
(type -p wget >/dev/null || (apt update && apt-get install wget -y)) \
&& mkdir -p -m 755 /etc/apt/keyrings \
&& wget -qO- https://cli.github.com/packages/githubcli-archive-keyring.gpg | tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \
&& 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" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
&& apt update \
&& apt install gh -y
git config --global --add safe.directory '*'
- name: Download repo
uses: actions/checkout@v4
- run: gh pr checkout ${{ inputs.pr }}
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Export branch name
run: echo "branch=$(git rev-parse --abbrev-ref HEAD)" >> "$GITHUB_OUTPUT"
id: branch
- name: Run FMT
- name: Install gh cli
id: gh
uses: ./.github/actions/set-up-gh
- name: Run update-ui
run: |
"./scripts/update-ui-tests.sh" "${{ inputs.rust-version }}"
- name: Report failure
Expand All @@ -56,4 +43,4 @@ jobs:
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: cmd-action - changes
branch: ${{ steps.branch.outputs.branch }}
branch: ${{ steps.gh.outputs.branch }}

0 comments on commit cbc99f9

Please sign in to comment.