From 7073826271a283fc1aaabc29ad233cc8ef4279af Mon Sep 17 00:00:00 2001 From: kcelia Date: Thu, 19 Dec 2024 16:40:23 +0100 Subject: [PATCH] chore: update the regular expression so that we remove any comments after the previous commit --- .github/workflows/run_one_use_cases_example.yaml | 4 ++-- script/actions_utils/update_slab_github_runner.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/run_one_use_cases_example.yaml b/.github/workflows/run_one_use_cases_example.yaml index 87b77b3be..fd09dc6cd 100644 --- a/.github/workflows/run_one_use_cases_example.yaml +++ b/.github/workflows/run_one_use_cases_example.yaml @@ -99,7 +99,7 @@ jobs: apt-get install -y python3-venv make git git-lfs binutils - name: Checkout Code - uses: actions/checkout@f26b8d611b2e695158fb0a6980834f0612f65ef8 # v4.2.2 + uses: actions/checkout@f26b8d611b2e695158fb0a6980834f0612f65ef8 with: lfs: true @@ -172,7 +172,7 @@ jobs: name: Send Slack notification runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@f26b8d611b2e695158fb0a6980834f0612f65ef8 # v4.2.2 + - uses: actions/checkout@f26b8d611b2e695158fb0a6980834f0612f65ef8 - name: Prepare whole job status if: ${{ always() }} diff --git a/script/actions_utils/update_slab_github_runner.sh b/script/actions_utils/update_slab_github_runner.sh index 46750f56b..4e08e1892 100755 --- a/script/actions_utils/update_slab_github_runner.sh +++ b/script/actions_utils/update_slab_github_runner.sh @@ -18,7 +18,7 @@ for file in $(find .github -type f \( -name "*.yml" -o -name "*.yaml" \)); do grep -nE "uses: actions/checkout@" "$file" || echo "No match found" # Replace the target line with the new commit, keeping indentation intact - sed -E -i "s|(uses: actions/checkout@)[^[:space:]]*|\1$RELEASE_COMMIT|g" "$file" + sed -E -i "s|uses: actions/checkout@.*|uses: actions/checkout@$RELEASE_COMMIT|g" "$file" # Extract lines containing "uses: actions/checkout@" after modification echo "After modifications:"