Skip to content

Commit b084d85

Browse files
authored
reverted changes
1 parent 5fef0ef commit b084d85

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/publish_image_to_dockerhub.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,19 @@ jobs:
2020
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2121
WITH_V: true
2222
id: bump
23+
- name: update Docker Compose
24+
id: update_docker_compose
25+
run: |
26+
git config --local user.email "[email protected]"
27+
git config --local user.name "GitHub Action"
28+
git pull origin master
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
30+
git add docker-compose.yml
31+
git commit -m "update Docker Compose"
32+
- name: Push changes
33+
uses: ad-m/github-push-action@master
34+
with:
35+
github_token: ${{ secrets.GITHUB_TOKEN }}
2336
- name: Create Release
2437
id: create_release
2538
uses: actions/create-release@v1

0 commit comments

Comments
 (0)