Skip to content

Commit

Permalink
change the default branch in GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ajabep committed Aug 6, 2024
1 parent ec2991b commit a63e2d5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ name: "CodeQL"

on:
push:
branches: [ "master" ]
branches: [ "master", "main", $default-branch ]
pull_request:
branches: [ "master" ]
branches: [ "master", "main", $default-branch ]
schedule:
- cron: '25 5 * * 3'

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ name: Go

on:
push:
branches: [ "master" ]
branches: [ "master", "main", $default-branch ]
pull_request:
branches: [ "master" ]
branches: [ "master", "main", $default-branch ]

permissions:
contents: read
Expand All @@ -32,5 +32,5 @@ jobs:
- name: Build
run: go build -v ./...

#- name: Test
# run: go test -v ./...
- name: Test
run: go test -v ./...
2 changes: 1 addition & 1 deletion .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
schedule:
- cron: '18 8 * * 4'
push:
branches: [ "master" ]
branches: [ "master", "main", $default-branch ]

# Declare default permissions as read only.
permissions: read-all
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ name: SonarCloud analysis

on:
push:
branches: [ "main" ]
branches: [ "master", "main", $default-branch ]
pull_request:
branches: [ "main" ]
branches: [ "master", "main", $default-branch ]
workflow_dispatch:

permissions:
Expand Down

0 comments on commit a63e2d5

Please sign in to comment.