Skip to content

Commit

Permalink
Change the default branch from master to main in GH Actions (#318)
Browse files Browse the repository at this point in the history
  • Loading branch information
ole4ryb authored Jan 6, 2025
1 parent a5d7942 commit da1e3bb
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:
- master
- main
push:
branches:
- master
- main

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

0 comments on commit da1e3bb

Please sign in to comment.