Skip to content

Commit

Permalink
update main branch name
Browse files Browse the repository at this point in the history
  • Loading branch information
ole4ryb committed Jan 2, 2025
1 parent 9176f7b commit 669abda
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ on:
pull_request:
types: [opened, synchronize, reopened]
branches:
- main
- master
push:
branches:
- main
- master

jobs:
checkstyle:
Expand Down Expand Up @@ -200,8 +200,8 @@ jobs:
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
GIT_BRANCH=PR
elif [[ "${{ github.event_name }}" == "push" && "${{ github.ref }}" == "refs/heads/main" ]]; then
GIT_BRANCH=main
elif [[ "${{ github.event_name }}" == "push" && "${{ github.ref }}" == "refs/heads/master" ]]; then
GIT_BRANCH=master
fi
BUILD_ID=$(./create_build_id.sh $GIT_BRANCH ${{ github.run_number }} ${{ github.sha }})
Expand Down

0 comments on commit 669abda

Please sign in to comment.