Skip to content

Commit

Permalink
Use github.head_ref instead of github.ref
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmad-el-sayed committed Feb 1, 2024
1 parent 2980ac0 commit 87b5b81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- id: condition
run: |
if [ "${{ runner.os }}" == "macOS" ]; then
if [[ ${{ matrix.platform }} == 'macos-13-xlarge' && ${{ github.ref }} != 'refs/heads/feature/*' ]]; then
if [[ ${{ matrix.platform }} == 'macos-13-xlarge' && ${{ github.head_ref }} != 'feature/*' ]]; then
echo "condition=true" >> $GITHUB_OUTPUT
else
echo "condition=false" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 87b5b81

Please sign in to comment.