File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 58
58
exec:exec | perl -ne 'die unless m/${{ github.event.inputs.releaseVersion }}-SNAPSHOT/'
59
59
- name : Release Prepare
60
60
run : |
61
+ git checkout -b 'automated-release-${{ github.event.inputs.releaseVersion }}'
61
62
mvn --batch-mode \
62
63
release:prepare \
63
64
-Dtag=v${{ github.event.inputs.releaseVersion }} \
74
75
run : |
75
76
# The tests are already executed in the prepare, skipping
76
77
mvn -DlocalCheckout=true -Darguments=-DskipTests release:perform
77
- git push https://${{ github.token }}@github.com/${{ github.repository }}.git ${{ github.ref_name }}:${{ github.ref_name }}
78
+ git push https://${{ github.token }}@github.com/${{ github.repository }}.git \
79
+ automated-release-${{ github.event.inputs.releaseVersion }}:automated-release-${{ github.event.inputs.releaseVersion }}
78
80
git push https://${{ github.token }}@github.com/${{ github.repository }}.git v${{ github.event.inputs.releaseVersion }}
81
+ - name : Pull Request
82
+ uses : repo-sync/pull-request@v2
83
+ with :
84
+ source_branch : automated-release-${{ github.event.inputs.releaseVersion }}
85
+ destination_branch : ${{ github.ref_name }}
86
+ github_token : ${{ secrets.GITHUB_TOKEN }}
87
+ pr_title : " Automated Release: ${{ github.event.inputs.releaseVersion }}"
79
88
- name : Publish Release
80
89
if : ${{ github.event.inputs.dry-run != 'true' }}
81
90
uses : ncipollo/release-action@v1
You can’t perform that action at this time.
0 commit comments