Skip to content

Commit

Permalink
ci: Use different separator for sed command
Browse files Browse the repository at this point in the history
This is to prevent errors with the sed command, since the / is also used
to indicate the path of the docker image that will have their version
replaced.
  • Loading branch information
PMax5 authored and diocas committed Jul 30, 2024
1 parent 574d000 commit dd28649
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/update-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
echo "Updating information for image = ${{ github.event.inputs.image }} version = ${{ github.event.inputs.version }}"
export IMAGE_NAME=${{ github.event.inputs.image }}
export IMAGE_VERSION=$(echo ${{ github.event.inputs.version }} | sed -e "s/v//g")
sed -i "s/\(gitlab-registry.cern.ch\/swan\/docker-images\/$IMAGE_NAME:*\)[^ ]*/\1$IMAGE_VERSION/" swan/values.yaml
sed -i "s|\(gitlab-registry.cern.ch/swan/docker-images/$IMAGE_NAME:\)[^ ]*|\1$IMAGE_VERSION|" swan/values.yaml
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v6
Expand Down

0 comments on commit dd28649

Please sign in to comment.