Skip to content

Commit

Permalink
chore: fix 'windows' pull request check; head_ref is the branch name …
Browse files Browse the repository at this point in the history
…while ref ends up being a generated GH actions branch name for the PR
  • Loading branch information
gregmagolan committed Mar 11, 2023
1 parent 8255da2 commit 5faf59e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
run: echo "os=windows-latest" >> $GITHUB_OUTPUT
# Only run on main branch (or PR branches that contain 'windows') to minimize Windows minutes (billed at 2X)
# https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#included-storage-and-minutes
if: ${{ github.ref == 'refs/heads/main' || contains(github.ref, 'windows') }}
if: ${{ github.ref == 'refs/heads/main' || contains(github.head_ref, 'windows') }}
outputs:
# Will look like ["ubuntu-latest", "macos-latest", "windows-latest"]
os: ${{ toJSON(steps.*.outputs.os) }}
Expand Down

0 comments on commit 5faf59e

Please sign in to comment.