Skip to content

Commit

Permalink
fix again
Browse files Browse the repository at this point in the history
  • Loading branch information
abvthecity committed Sep 14, 2024
1 parent a06e172 commit bed81a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ jobs:
env:
GH_TOKEN: ${{ github.token }}
run: |
BRANCHES=$(gh pr list --repo "${{ github.repository }}" --search "${{ github.sha }}" --json headRefName --jq '.[].headRefName')
MAIN_BRANCH=$(echo $BRANCH_NAMES | grep -o 'main')
BRANCHES=${gh pr list --repo "${{ github.repository }}" --search "${{ github.sha }}" --json headRefName --jq '.[].headRefName'}
MAIN_BRANCH=${echo $BRANCH_NAMES | grep -o 'main'}
echo "::set-output name=branch::$MAIN_BRANCH"
PR_NUMBER=$(gh pr list --repo "${{ github.repository }}" --search "${{ github.sha }}" --json number --jq '.[0].number')
PR_NUMBER=${gh pr list --repo "${{ github.repository }}" --search "${{ github.sha }}" --json number --jq '.[0].number'}
echo "::set-output name=pr_number::$PR_NUMBER"
# skip if branch is main
Expand Down

0 comments on commit bed81a1

Please sign in to comment.