Skip to content

Commit

Permalink
Merge branch 'main' into feature-dev/feature-test
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilDigitalJustice authored Feb 6, 2025
2 parents 9db1dbc + 20847d5 commit 6f450fd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 37 deletions.
36 changes: 0 additions & 36 deletions .github/workflows/on-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,39 +129,3 @@ jobs:
git add .
git commit -m "update appVersion to ${{ env.REPO_NAME }}-${{ env.APP_VERSION }}"
git push origin
update-laa-ccms-caab-ui:
needs: [ assemble-publish, define-image-tag ]
runs-on: ubuntu-latest
steps:
- name: Checkout caab-ui repo
uses: actions/checkout@v3
with:
repository: ministryofjustice/laa-ccms-caab
ref: main
token: ${{ secrets.REPO_TOKEN }}

- name: Create a new branch
env:
APP_VERSION: ${{ needs.assemble-publish.outputs.app_version }}
run: |
git checkout -b dependency/update-assessment-api-version-${APP_VERSION}
- name: Update gradle build file
env:
APP_VERSION: ${{ needs.assemble-publish.outputs.app_version }}
run: |
sed -i "s/uk.gov.laa.ccms.caab:assessment-api:[^']*/uk.gov.laa.ccms.caab:assessment-api:${APP_VERSION}/g" build.gradle
- name: Commit and push changes
env:
APP_VERSION: ${{ needs.assemble-publish.outputs.app_version }}
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions Bot"
git add build.gradle
git commit -m "Update assessment-api version to ${APP_VERSION}"
git push origin dependency/update-assessment-api-version-${APP_VERSION}
gh auth login --with-token <<< "${{ secrets.REPO_TOKEN }}"
gh pr create --base main --head dependency/update-assessment-api-version-${APP_VERSION} --title "Update assessment-api version to ${APP_VERSION}" --body "Automatic PR raised by GitHub Actions to update assessment-api version to ${APP_VERSION}"
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version=0.0.26-SNAPSHOT
version=0.0.27-SNAPSHOT
group='uk.gov.laa.ccms'

0 comments on commit 6f450fd

Please sign in to comment.