Skip to content

Commit

Permalink
Update chrome-verify-updates-job.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
LiberQuack authored May 22, 2017
1 parent 7182ecd commit 3b06907
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions chrome-verify-updates-job.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
#!/bin/bash

docker run busybox echo "Checking if there is a new chrome version..."
sudo apt update &&
sudo apt list --upgradable | grep google-chrome-stable &&
docker run busybox echo "Found new chrome version..." &&
sudo apt upgrade google-chrome-stable &&
CHROME_VERSION=$(google-chrome --version | awk '{print $3}') &&
docker run busybox echo "Sending tag ${CHROME_VERSION} to github..." &&
curl --user username:token \
--header "Accept: application/vnd.github.manifold-preview" \
--data "{\"tag_name\":\"${CHROME_VERSION}\"" \
Expand Down

0 comments on commit 3b06907

Please sign in to comment.