Skip to content

Commit

Permalink
try to release on fork
Browse files Browse the repository at this point in the history
  • Loading branch information
Ball, Nware committed Jan 18, 2024
1 parent 6c757ea commit 284ccc4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:
push:
pull_request:
branches: [ "master", "develop" ]
branches: [ "fork_master", "fork_develop" ]

jobs:
build:
Expand All @@ -29,7 +29,7 @@ jobs:
run: mvn install -Dmaven.javadoc.skip=true -B -V

- name: Release to maven central
if: github.ref_name == 'master' && github.event_name != 'pull_request' && github.repository == 'swisspost/jsonschema2pojo-openenum'
if: github.ref_name == 'fork_master' && github.event_name != 'pull_request' && github.repository == 'gedestroy/jsonschema2pojo-openenum'
run: |
curl -s get.sdkman.io | bash
source "$HOME/.sdkman/bin/sdkman-init.sh"
Expand Down
4 changes: 2 additions & 2 deletions maybe-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ then
echo 'Release done, will push'
git tag
git push --tags
git checkout develop
git push origin develop
git checkout fork_develop
git push origin fork_develop
exit 0
fi
echo 'Release failed'
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@
<version>1.0-m5.1</version>
<configuration>
<flowInitContext>
<masterBranchName>master</masterBranchName>
<developBranchName>develop</developBranchName>
<masterBranchName>fork_master</masterBranchName>
<developBranchName>fork_develop</developBranchName>
<featureBranchPrefix>feature-</featureBranchPrefix>
<releaseBranchPrefix>release-</releaseBranchPrefix>
<hotfixBranchPrefix>hotfix-</hotfixBranchPrefix>
Expand Down

0 comments on commit 284ccc4

Please sign in to comment.