Skip to content

Commit

Permalink
added branch selection
Browse files Browse the repository at this point in the history
  • Loading branch information
Bullrich committed Jun 5, 2024
1 parent 039e8c1 commit 1a14326
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/command-fmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ jobs:
volumes:
- my_docker_volume:/volume_mount
steps:
- name: Install gh
run: apt-get update && apt-get install -yq --no-install-recommends bash ca-certificates git gh
- name: Check branch name
if: startsWith(github.ref, 'master/')
run: echo "::error ::'master' is an invalid branch. Select your PR's branch"
- name: Download repo
uses: actions/checkout@v4
- run: gh pr checkout ${{ inputs.pr }}
Expand Down

0 comments on commit 1a14326

Please sign in to comment.