Skip to content

Commit

Permalink
chore: update the regular expression so that we remove any comments a…
Browse files Browse the repository at this point in the history
…fter the previous commit
  • Loading branch information
kcelia committed Dec 19, 2024
1 parent 87023a9 commit 7073826
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/run_one_use_cases_example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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() }}
Expand Down
2 changes: 1 addition & 1 deletion script/actions_utils/update_slab_github_runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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:"
Expand Down

0 comments on commit 7073826

Please sign in to comment.