diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7264b80..75e607f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,7 +2,7 @@ name: Build Pacparser on: push: - branches: [master] + branches: [main] paths: - "src/**" - ".github/**" @@ -268,7 +268,7 @@ jobs: name: Build and push multiarch docker image if: | github.repository == 'manugarg/pacparser' && - (github.ref == 'refs/heads/master' || startswith(github.ref, 'refs/heads/docker') || + (github.ref == 'refs/heads/main' || startswith(github.ref, 'refs/heads/docker') || startsWith(github.ref, 'refs/tags/v')) runs-on: ubuntu-latest steps: diff --git a/.github/workflows/sonar.yml b/.github/workflows/sonar.yml index ff2526d..988d8e2 100644 --- a/.github/workflows/sonar.yml +++ b/.github/workflows/sonar.yml @@ -2,7 +2,7 @@ name: SonarCloud on: push: branches: - - master + - main pull_request: types: [opened, synchronize, reopened] permissions: read-all