Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AAE-20235: propagate using jx-updatebot system #4570

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
29 changes: 9 additions & 20 deletions .github/workflows/main_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,27 +90,16 @@ jobs:
git tag -fa $VERSION -m "Release version $VERSION"
git push -f -q origin $VERSION

- name: Install updatebot
uses: Alfresco/alfresco-build-tools/.github/actions/setup-updatebot@469ed8f7c8198c4f8476392d944b2568e4043c5a # v5.13.1

# updatebot requires JDK 11 to work
- name: Configure Java JDK for updatebot
uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # 4.0.0
- name: Propagate
uses: Alfresco/alfresco-build-tools/.github/actions/jx-updatebot-pr@469ed8f7c8198c4f8476392d944b2568e4043c5a # v5.13.1
with:
java-version: 11
distribution: 'temurin'

- name: Run updatebot
run: |
echo -e "https://$GITHUB_USERNAME:$GITHUB_TOKEN@github.com" >> ~/.git-credentials
updatebot push-version --kind maven \
org.activiti:activiti-dependencies $VERSION \
org.activiti:activiti-api-dependencies $VERSION \
org.activiti:activiti-core-dependencies $VERSION \
org.activiti:activiti-core-common-dependencies $VERSION
env:
GITHUB_USERNAME: ${{ secrets.BOT_GITHUB_USERNAME }}
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }}
version: ${{ env.VERSION }}
auto-merge: 'true'
labels: ${{ env.DEVELOPMENT_BRANCH }}
erdemedeiros marked this conversation as resolved.
Show resolved Hide resolved
base-branch-name: ${{ env.DEVELOPMENT_BRANCH }}
git-username: ${{ secrets.BOT_GITHUB_USERNAME }}
git-token: ${{ secrets.BOT_GITHUB_TOKEN }}
git-author-name: ${{ secrets.BOT_GITHUB_USERNAME }}

notify:
runs-on: ubuntu-latest
Expand Down
12 changes: 12 additions & 0 deletions .jx/updatebot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: updatebot.jenkins-x.io/v1alpha1
kind: UpdateConfig
spec:
rules:
- urls:
- https://github.com/Activiti/activiti-cloud
reusePullRequest: true
changes:
- regex:
pattern: "<activiti.version>(.*)</activiti.version>"
files:
- "**/pom.xml"
7 changes: 0 additions & 7 deletions .updatebot.yml

This file was deleted.