From 4109e783fbc8d9bfe506da901e9e8eb0b6d6bca1 Mon Sep 17 00:00:00 2001 From: Momo Kornher Date: Fri, 20 Sep 2024 20:54:29 +0100 Subject: [PATCH] stuff --- .github/workflows/custom-upgrade-awscli-v2-main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/custom-upgrade-awscli-v2-main.yml b/.github/workflows/custom-upgrade-awscli-v2-main.yml index 2bcc279..a244031 100644 --- a/.github/workflows/custom-upgrade-awscli-v2-main.yml +++ b/.github/workflows/custom-upgrade-awscli-v2-main.yml @@ -29,11 +29,11 @@ jobs: python3 -m venv .venv . .venv/bin/activate pip install -r requirements.txt - python3 -c "import os; print(os.path.dirname(os.path.realpath(__name__)))" - python3 -c "import os; print(os.getcwd())" - python3 -c "import subprocess; subprocess.check_call(('ls', '-ahls', '.'))" - python3 -c "import subprocess; subprocess.check_call(('ls', '-ahls', '../../layer/'))" python3 -c "import subprocess; subprocess.check_call(('pwd'))" + python3 -c "import subprocess; subprocess.check_call(('sed', '-i', '', '-e', \"/amazon\\\\/aws-cli:/s/:.*/:%s/\"%('123'), '../../layer/Dockerfile'), stdout=subprocess.PIPE)" + cat ../../layer/Dockerfile + python3 -c "import subprocess; subprocess.check_call(('sed', '-i', '', '-e', \"/amazon\\\\/aws-cli:/s/:.*/:%s/\"%('123'), '../../layer/Dockerfile'))" + cat ../../layer/Dockerfile python3 upgrade-awscli-version.py - id: create_patch name: Find mutations