-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
15 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |