Skip to content

Commit

Permalink
workflow changes
Browse files Browse the repository at this point in the history
  • Loading branch information
yairgott committed Jan 23, 2025
1 parent e1e0198 commit 09b7d93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/clang_tidy_format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
run: |
# If it's a pull request, compare against the base branch.
# If it's a push to main, compare against the previous commit.
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
if [[ "${{ github.ref }}" != "refs/heads/main" ]]; then
echo "BASE_BRANCH=${{ github.base_ref }}" >> $GITHUB_ENV
else
echo "BASE_BRANCH=$(git rev-parse HEAD~1)" >> $GITHUB_ENV
Expand Down

0 comments on commit 09b7d93

Please sign in to comment.