Skip to content

Commit

Permalink
Adjust release workflow to update MCAD on funtional test
Browse files Browse the repository at this point in the history
  • Loading branch information
sutaakar authored and openshift-merge-bot[bot] committed Feb 21, 2024
1 parent 21424f0 commit ca8c03f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/instascale-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,20 @@ jobs:
run: |
go get github.com/project-codeflare/multi-cluster-app-dispatcher@${{ github.event.inputs.mcad-version }}
- name: Adjust multi-cluster-app-dispatcher dependency in functional tests
run: |
sed -i -E "s|(.*multi-cluster-app-dispatcher@)v[0-9]+\.[0-9]+\.[0-9]+(.*)|\1${{ github.event.inputs.mcad-version }}\2|" functional-tests/appwrapper_reconciler_test.go
# Build and test repository to make sure that MCAD update didn't break anything
- name: Build
run: go build -o bin/manager main.go

# Update dependencies
- name: Commit go.mod and go.sum changes to the branch
- name: Commit go.mod, go.sum, and functional tests changes to the branch
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Update go.mod and go.sum to MCAD ${{ github.event.inputs.mcad-version }}
file_pattern: 'go.mod go.sum'
commit_message: Update go.mod, go.sum, and functional tests to MCAD ${{ github.event.inputs.mcad-version }}
file_pattern: 'go.mod go.sum *.go'
create_branch: true
branch: ${{ env.PR_BRANCH }}

Expand Down

0 comments on commit ca8c03f

Please sign in to comment.