diff --git a/.github/workflows/tags.yml b/.github/workflows/tags.yml index e3ac2a5..fd60657 100644 --- a/.github/workflows/tags.yml +++ b/.github/workflows/tags.yml @@ -22,8 +22,7 @@ jobs: git tag -d $VERSION git push --delete origin $VERSION - - - name: Update README.md and push with version tag + - name: Update README.md run: | VERSION=${GITHUB_REF#refs/tags/} echo "Tagging updated README.md with '$VERSION'." @@ -32,6 +31,11 @@ jobs: git config --local user.email "actions@github.com" git config --local user.name "GitHub Actions" git add README.md - git commit -m "Update README.md for tag '$VERSION' [skip ci]" - git tag $VERSION - git push origin HEAD:main + git commit -m "Update README.md for tag '$VERSION' [skip ci]" || echo "No changes to commit" + + - name: Tag latest commit + run: | + VERSION=${GITHUB_REF#refs/tags/} + git tag -fa $VERSION -m "Update tag '$VERSION' to latest commit" + git push origin $VERSION --force + echo "Pushed tag '$VERSION' to the latest commit." \ No newline at end of file diff --git a/README.md b/README.md index 63cbc4b..c8160f9 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ ![Docker Pulls](https://img.shields.io/docker/pulls/thejcpalma/palworld-dedicated-server) ![Docker Stars](https://img.shields.io/docker/stars/thejcpalma/palworld-dedicated-server) ![Image Size](https://img.shields.io/docker/image-size/thejcpalma/palworld-dedicated-server/latest) -[![Static Badge](https://img.shields.io/badge/readme-dev-blue?link=https%3A%2F%2Fgithub.com%2Fthejcpalma%2Fpalworld-dedicated-server-docker%2Fblob%2Fmain%2FREADME.md)](https://github.com/thejcpalma/palworld-dedicated-server-docker?tab=readme-ov-file#palworld-dedicated-server-docker) +[![Static Badge](https://img.shields.io/badge/readme-0.2.2-blue?link=https%3A%2F%2Fgithub.com%2Fthejcpalma%2Fpalworld-dedicated-server-docker%2Fblob%2Fmain%2FREADME.md)](https://github.com/thejcpalma/palworld-dedicated-server-docker?tab=readme-ov-file#palworld-dedicated-server-docker) ![Discord](https://img.shields.io/discord/1206023011011141702?logo=discord&label=Discord&link=https%3A%2F%2Fdiscord.gg%2FycanfK9R5B)