Skip to content

Commit

Permalink
fix: restrict to specific staging branch - no fuzzy matching (aws-amp…
Browse files Browse the repository at this point in the history
  • Loading branch information
stocaaro committed Sep 19, 2023
1 parent a61e077 commit 7762f1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/actions/setup-samples-staging/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ runs:
env:
BRANCH: ${{ github.ref_name }}
run: |
if git ls-remote --exit-code --heads origin $BRANCH >/dev/null 2>&1; then
if git ls-remote origin $BRANCH | grep -q refs/heads/next/$BRANCH$; then
# Branch exists, checkout and echo success message
git fetch origin $BRANCH
git checkout $BRANCH
Expand Down

0 comments on commit 7762f1a

Please sign in to comment.