Skip to content

Commit

Permalink
remove version update step
Browse files Browse the repository at this point in the history
  • Loading branch information
farrell-m committed Feb 6, 2025
1 parent 7b49499 commit 1d798ff
Showing 1 changed file with 0 additions and 36 deletions.
36 changes: 0 additions & 36 deletions .github/workflows/on-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,39 +144,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: [ build-test-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.build-test-publish.outputs.app_version }}
run: |
git checkout -b dependency/update-data-api-version-${APP_VERSION}
- name: Update gradle build file
env:
APP_VERSION: ${{ needs.build-test-publish.outputs.app_version }}
run: |
sed -i "s/uk.gov.laa.ccms.data:data-api:[^']*/uk.gov.laa.ccms.data:data-api:${APP_VERSION}/g" build.gradle
- name: Commit and push changes
env:
APP_VERSION: ${{ needs.build-test-publish.outputs.app_version }}
run: |
git config --global user.email "github@justice.gov.uk"
git config --global user.name "GitHub Actions Bot"
git add build.gradle
git commit -m "Update data-api version to ${APP_VERSION}"
git push origin dependency/update-data-api-version-${APP_VERSION}
gh auth login --with-token <<< "${{ secrets.REPO_TOKEN }}"
gh pr create --base main --head dependency/update-data-api-version-${APP_VERSION} --title "Update data-api version to ${APP_VERSION}" --body "Automatic PR raised by GitHub Actions to update data-api version to ${APP_VERSION}"

0 comments on commit 1d798ff

Please sign in to comment.