Skip to content

Commit

Permalink
Update upgrader.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
exelban authored Mar 18, 2020
1 parent d0520ee commit ebfb58b
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/upgrader.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,21 @@ jobs:
echo ::set-output name=exist::"no"
fi
- name: Check if a new version exist in docker hub.
id: build
if: steps.check.outputs.exist == 'yes'
run: |
if docker pull google/cloud-sd:$SDK_VERSION > /dev/null; then
echo "Docker image exist..."
echo ::set-output name=successful::"yes"
else
echo "Docker image not exist remotly...."
echo ::set-output name=successful::"no"
fi
- name: Modify Dockerfile
id: modify
if: steps.check.outputs.exist == 'yes'
if: steps.check.outputs.exist == 'yes' && steps.build.outputs.successful == 'yes'
run: |
git config --global url."https://${{ secrets.GH_TOKEN }}:@github.com/".insteadOf "https://github.com/"
git config --global user.name "Serhiy Mytrovtsiy"
Expand Down

0 comments on commit ebfb58b

Please sign in to comment.