File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33on :
44 push :
5- branches : [master ]
5+ branches : [main ]
66 pull_request :
77
88jobs :
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: "Release"
33on :
44 pull_request :
55 types : [closed]
6- branches : [master ]
6+ branches : [main ]
77 workflow_dispatch :
88
99permissions :
1919 check-release-label :
2020 name : Check for release label
2121 runs-on : ubuntu-latest
22- # Run when PR with 'release' label is merged to master
22+ # Run when PR with 'release' label is merged to main
2323 if : |
2424 github.event_name == 'workflow_dispatch' ||
2525 (github.event_name == 'pull_request' &&
3131 - name : Checkout repository
3232 uses : actions/checkout@v4
3333 with :
34- ref : master
34+ ref : main
3535 fetch-depth : 0
3636
3737 - name : Check release conditions
9191 - name : Checkout repository
9292 uses : actions/checkout@v4
9393 with :
94- ref : master
94+ ref : main
9595 fetch-depth : 0
9696 token : ${{ steps.releaser.outputs.token }}
9797
@@ -150,7 +150,7 @@ jobs:
150150 echo "committed=false" >> "$GITHUB_OUTPUT"
151151 else
152152 git commit -m "chore: Release v${NEW_VERSION}"
153- git push origin master
153+ git push origin main
154154 echo "committed=true" >> "$GITHUB_OUTPUT"
155155 fi
156156
Original file line number Diff line number Diff line change 99 pull_request :
1010 push :
1111 branches :
12- - master
12+ - main
1313
1414jobs :
1515 compliance :
Original file line number Diff line number Diff line change 22version = 1
33
44[git ]
5- default_branch = " master "
5+ default_branch = " main "
66short_tags = " posthog" # Tag with v1.2.3 rather than posthog-v1.2.3
77
88[github ]
Original file line number Diff line number Diff line change @@ -329,7 +329,7 @@ the [PostHog SDK releases process](https://posthog.com/handbook/engineering/sdks
329329
3303301 . ** Add a changeset** to your PR describing the changes (see above)
3313312 . ** Add the `release` label** to the PR when it' s ready for release
332- 3. **Merge the PR** into `master `
332+ 3. **Merge the PR** into `main `
333333
334334Once merged, the release workflow will automatically:
335335
You can’t perform that action at this time.
0 commit comments