diff --git a/.github/workflows/base-csgo-image-check.yml b/.github/workflows/base-csgo-image-check.yml index cfd8076..63af62a 100644 --- a/.github/workflows/base-csgo-image-check.yml +++ b/.github/workflows/base-csgo-image-check.yml @@ -76,10 +76,8 @@ jobs: git checkout -b actions/bump-base-csgo-image-tag # Replace base-csgo image tag - cat docker-compose.yml | yq -M -y '.services."base-csgo".build.args.STEAMRT_PLATFORM_VERSION = "${CI_PR_NEW_BASE_CSGO_IMAGE_TAG}"' > docker-compose-new.yml - rm -rf docker-compose.yml - mv docker-compose-new.yml docker-compose.yml - + yq -i '.services."base-csgo".build.args.STEAMRT_PLATFORM_VERSION = "${CI_PR_NEW_BASE_CSGO_IMAGE_TAG}"' docker-compose.yml + # Add, commit and push changes to the branch git add docker-compose.yml git commit -m "Bump base-csgo image tag to ${CI_PR_NEW_BASE_CSGO_IMAGE_TAG}" diff --git a/.github/workflows/base-legacy-image-check.yml b/.github/workflows/base-legacy-image-check.yml index f41ab17..12c58e4 100644 --- a/.github/workflows/base-legacy-image-check.yml +++ b/.github/workflows/base-legacy-image-check.yml @@ -76,9 +76,7 @@ jobs: git checkout -b actions/bump-base-legacy-image-tag # Replace base-legacy image tag - cat docker-compose.yml | yq -M -y '.services."base-legacy".build.args.STEAMRT_PLATFORM_VERSION = "${CI_PR_NEW_BASE_LEGACY_IMAGE_TAG}"' > docker-compose-new.yml - rm -rf docker-compose.yml - mv docker-compose-new.yml docker-compose.yml + yq -i '.services."base-legacy".build.args.STEAMRT_PLATFORM_VERSION = "${CI_PR_NEW_BASE_LEGACY_IMAGE_TAG}"' docker-compose.yml # Add, commit and push changes to the branch git add docker-compose.yml