Skip to content

Commit

Permalink
chore(ci): ensure a branch is checked out even in pull_request runs
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-aksamentov committed Sep 4, 2023
1 parent a48c57f commit ffe5ab4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@ jobs:
fetch-depth: 50
submodules: true

- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v7

- name: "Checkout branch"
if: steps.branch-name.outputs.is_default == 'false'
run: |
git checkout ${{ steps.branch-name.outputs.current_branch }}
- name: "Install system dependencies"
run: |
sudo apt-get install brotli pigz parallel rename --yes -qq >/dev/null
Expand Down

0 comments on commit ffe5ab4

Please sign in to comment.