Skip to content

Commit 183e5c4

Browse files
committed
chore: deploy from main not master
1 parent 113a602 commit 183e5c4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Can I deploy?
3636
run: GIT_BRANCH=${GITHUB_REF:11} make can_i_deploy
3737

38-
# Only deploy from master
38+
# Only deploy from main
3939
deploy:
4040
runs-on: ubuntu-latest
4141
needs: can-i-deploy
@@ -44,4 +44,4 @@ jobs:
4444
- run: docker pull pactfoundation/pact-cli:latest
4545
- name: Deploy
4646
run: GIT_BRANCH=${GITHUB_REF:11} make deploy
47-
if: github.ref == 'refs/heads/master'
47+
if: github.ref == 'refs/heads/main'

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ test {
4141
// These properties need to be set on the test JVM process
4242
systemProperty("pact.provider.version", System.getenv("GIT_COMMIT") == null ? "" : System.getenv("GIT_COMMIT"))
4343
systemProperty("pact.provider.tag", System.getenv("GIT_BRANCH") == null ? "" : System.getenv("GIT_BRANCH"))
44-
systemProperty("pact.provider.branch", System.getenv("GIT_BRANCH") == null ? "" : System.getenv("GIT_BRANCH"))
44+
systemProperty("pact.provider.branch", System.getenv("GIT_BRANCH") == null ? "main" : System.getenv("GIT_BRANCH"))
4545
systemProperty("pactbroker.consumerversionselectors.rawjson", "[{\"mainBranch\":true}]")
4646
systemProperty("pact.verifier.publishResults", System.getenv("PACT_BROKER_PUBLISH_VERIFICATION_RESULTS") == null ? "false" : "true")
4747
}

0 commit comments

Comments
 (0)