Skip to content

Commit

Permalink
Update ci.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
candonov authored Apr 2, 2023
1 parent 6c904b0 commit 31e3ffe
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,18 @@ jobs:
- name: Set artifact name as environment variable
run: echo "ARTIFACT_NAME=$(echo '${{ steps.goreleaser.outputs.artifacts }}' | jq -r '.[] | select(.type == "Archive").name')" >> $GITHUB_ENV

- name: Use artifact name in next step
run: echo ${{env.ARTIFACT_NAME}}
- name: Modify file
run: |
# Use sed to replace the bucketKey value in the file with the ARTIFACT_NAME
sed -i "s/bucketKey:.*/bucketKey: lambda-processor-app\/artifacts\/${{ env.ARTIFACT_NAME }}/g" claim/sqs-lambda-s3-claim.yaml
- name: Commit changes
run: |
git add claim/sqs-lambda-s3-claim.yaml
git commit -m "Update bucket key with ${ARTIFACT_NAME}"
- name: Push changes
uses: ad-m/[email protected]
with:
branch: main #push directly to main for testing only
force: true

0 comments on commit 31e3ffe

Please sign in to comment.