Skip to content

Commit e3600e0

Browse files
authored
trying to pass actions variable to awk
1 parent 72c7358 commit e3600e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/publish_image_to_dockerhub.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
git config --local user.email "[email protected]"
2727
git config --local user.name "GitHub Action"
2828
git pull origin master
29-
awk '{gsub("v[0-9]+[.]+.+", ${{ steps.bump.outputs.new_tag }}, $0); print}' docker-compose.yml > docker-compose.tmp && mv docker-compose.tmp docker-compose.yml
29+
awk -v tag=${{ steps.bump.outputs.new_tag }} '{gsub("v[0-9]+[.]+.+", tag, $0); print}' docker-compose.yml > docker-compose.tmp && mv docker-compose.tmp docker-compose.yml
3030
git commit -m "update Docker Compose" -a
3131
- name: Create Release
3232
id: create_release

0 commit comments

Comments
 (0)