diff --git a/CHANGELOG.md b/CHANGELOG.md index 82889b0..95b7049 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning]. ## [unreleased] +### Fixed + +- Added workaround for Python conflict in Github Action runner images ([34](https://github.com/douglascamata/setup-docker-macos-action/pull/34)) + ## [v1-alpha.12] - 2024-02-01 ### Added diff --git a/action.yml b/action.yml index 2169d83..db88a8c 100644 --- a/action.yml +++ b/action.yml @@ -88,6 +88,16 @@ runs: install colima-$(uname)-$(uname -m) /usr/local/bin/colima echo "::endgroup::" shell: bash + - name: Workaround for Python conflicts in GHA Runners + env: + HOMEBREW_NO_AUTO_UPDATE: "1" + HOMEBREW_NO_INSTALL_UPGRADE: "1" + HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: "1" + run: | + brew unlink python@3 || true + brew uninstall --ignore-dependencies python@3 || true + brew install --overwrite --force python@3 + shell: bash - name: Install QEMU, Docker client, and Docker Compose env: HOMEBREW_NO_AUTO_UPDATE: "1"