Skip to content

Commit

Permalink
fix features
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilDigitalJustice committed Jan 22, 2025
1 parent b72d185 commit 819a76b
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/feature-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: CI feature branch and deploy
on:
push:
branches:
- 'feature-dev/*'
- 'feature-test/*'
- 'feature-dev/**'
- 'feature-test/**'

permissions:
contents: read
Expand Down Expand Up @@ -128,8 +128,15 @@ jobs:
FEATURE_BRANCH: ${{ github.ref_name }}
run: |
cd laa-ccms-caab-helm-charts
git fetch origin $FEATURE_BRANCH || true
git checkout -b $FEATURE_BRANCH || git checkout $FEATURE_BRANCH
git config --global user.email "github@justice.gov.uk"
git config --global user.name "GitHub Actions Bot"
git fetch origin
if git rev-parse --verify origin/$FEATURE_BRANCH; then
git checkout $FEATURE_BRANCH
git pull origin $FEATURE_BRANCH
else
git checkout -b $FEATURE_BRANCH
fi
- name: Update helm chart
env:
Expand All @@ -138,6 +145,8 @@ jobs:
run: |
cd laa-ccms-caab-helm-charts/laa-ccms-caab-service/charts/caab-ebs-api/
yq eval-all "( .appVersion = \"${{ env.REPO_NAME }}-${{ env.APP_VERSION }}\" )" -i Chart.yaml
git config --global user.email "github@justice.gov.uk"
git config --global user.name "GitHub Actions Bot"
git add .
git commit -m "Update appVersion to ${{ env.REPO_NAME }}-${{ env.APP_VERSION }}"
git push origin $FEATURE_BRANCH

0 comments on commit 819a76b

Please sign in to comment.