Skip to content

Commit

Permalink
Merge pull request #439 from jakzal/update-tools-automatically
Browse files Browse the repository at this point in the history
Update the list of tools according the latest release
  • Loading branch information
jakzal authored Dec 31, 2024
2 parents 88a82c8 + 9a69d55 commit f6be611
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,13 @@ update-toolbox-version:
)
.PHONY: update-toolbox-version

update-toolbox-pr: update-toolbox-version
update-toolbox-pr: update-toolbox-version update-readme-tools
$(eval VERSION_CHANGE=$(shell git diff --name-only Dockerfile | head -n 1 | xargs git diff | grep TOOLBOX_VERSION | sed -e 's/.*"\(.*\)"/\1/g' | xargs echo | sed -e 's/ / -> /'))
[ "$(VERSION_CHANGE)" = "" ] || \
( \
$(eval PR_MESSAGE=$(shell curl -H'Authorization: token '$(GITHUB_TOKEN) -Ls 'https://api.github.com/repos/jakzal/toolbox/releases/latest' | jq -r .body | awk 'BEGIN { RS="\n";} { gsub(/\r/, ""); gsub(/#/, "\\#"); gsub(/"/, "\\\\\\\""); print "-m \""$$0"\""}')) \
git checkout -b toolbox-update && \
git add Dockerfile && \
git add Dockerfile README.md && \
git commit -m "Update toolbox $(VERSION_CHANGE)" -m "" $(PR_MESSAGE) && \
git push origin toolbox-update && \
hub pull-request -h toolbox-update -a jakzal -m 'Update toolbox $(VERSION_CHANGE)' -m '' -m ':robot: This pull request was automagically sent from a Github action.' -m '' $(PR_MESSAGE) \
Expand Down

0 comments on commit f6be611

Please sign in to comment.