We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d10228 commit 281c66aCopy full SHA for 281c66a
1 file changed
.github/workflows/build-deploy.yml
@@ -43,6 +43,7 @@ jobs:
43
env:
44
GITHUB_USERNAME: x-access-token
45
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46
+ if: github.base_ref == 'main' && github.event.pull_request.merged == true
47
run: |
48
export GIT_COMMIT_HASH=$(git log -n 1 --pretty=format:'%h')
49
export GIT_COMMIT_DATE=$(git log -1 --pretty='%ad' --date=format:'%Y%m%d%H%M%S')
@@ -52,6 +53,7 @@ jobs:
52
53
mvn --settings .m2/maven-settings.xml versions:commit
54
55
- name: Deploy to Github Package
56
57
58
59
0 commit comments