From c74a9db7fce24136f6b7758c1087a7753bb92c12 Mon Sep 17 00:00:00 2001 From: kcelia Date: Thu, 19 Dec 2024 16:49:32 +0100 Subject: [PATCH] chore: update slab github runner --- .github/workflows/cifar_benchmark.yaml | 4 ++-- .github/workflows/refresh-notebooks-gpu.yaml | 4 ++-- script/actions_utils/update_slab_github_runner.sh | 10 +++++----- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/cifar_benchmark.yaml b/.github/workflows/cifar_benchmark.yaml index 9a7d1dd9c..06362772c 100644 --- a/.github/workflows/cifar_benchmark.yaml +++ b/.github/workflows/cifar_benchmark.yaml @@ -57,7 +57,7 @@ jobs: steps: - name: Start instance id: start-instance - uses: zama-ai/slab-github-runner@f26b8d611b2e695158fb0a6980834f0612f65ef8 + uses: zama-ai/slab-github-runner@11bd71901bbe5b1630ceea73d27597364c9af683 with: mode: start github-token: ${{ secrets.SLAB_ACTION_TOKEN }} @@ -210,7 +210,7 @@ jobs: steps: - name: Stop instance id: stop-instance - uses: zama-ai/slab-github-runner@f26b8d611b2e695158fb0a6980834f0612f65ef8 + uses: zama-ai/slab-github-runner@11bd71901bbe5b1630ceea73d27597364c9af683 with: mode: stop github-token: ${{ secrets.SLAB_ACTION_TOKEN }} diff --git a/.github/workflows/refresh-notebooks-gpu.yaml b/.github/workflows/refresh-notebooks-gpu.yaml index cf0819e9d..e80a5ada7 100644 --- a/.github/workflows/refresh-notebooks-gpu.yaml +++ b/.github/workflows/refresh-notebooks-gpu.yaml @@ -28,7 +28,7 @@ jobs: - name: Start instance id: start-gpu-machine - uses: zama-ai/slab-github-runner@f26b8d611b2e695158fb0a6980834f0612f65ef8 + uses: zama-ai/slab-github-runner@11bd71901bbe5b1630ceea73d27597364c9af683 with: mode: start github-token: ${{ secrets.SLAB_ACTION_TOKEN }} @@ -115,7 +115,7 @@ jobs: steps: - name: Stop instance id: stop-instance - uses: zama-ai/slab-github-runner@f26b8d611b2e695158fb0a6980834f0612f65ef8 + uses: zama-ai/slab-github-runner@11bd71901bbe5b1630ceea73d27597364c9af683 with: mode: stop github-token: ${{ secrets.SLAB_ACTION_TOKEN }} diff --git a/script/actions_utils/update_slab_github_runner.sh b/script/actions_utils/update_slab_github_runner.sh index a5c9787a1..7e9807ddf 100755 --- a/script/actions_utils/update_slab_github_runner.sh +++ b/script/actions_utils/update_slab_github_runner.sh @@ -10,14 +10,14 @@ RELEASE_COMMIT="11bd71901bbe5b1630ceea73d27597364c9af683" for file in $(find .github -type f \( -name "*.yml" -o -name "*.yaml" \)); do echo "Processing: $file" - # Extract lines containing "uses: actions/checkout@" + # Extract lines containing "uses: zama-ai/slab-github-runner@" echo "Before modifications:" - grep -nE "uses: actions/checkout@" "$file" + grep -nE "uses: zama-ai/slab-github-runner@" "$file" # Replace the target line with the new commit, any comments will be deleted - sed -E -i "s|uses: actions/checkout@.*|uses: actions/checkout@$RELEASE_COMMIT|g" "$file" + sed -E -i "s|uses: zama-ai/slab-github-runner@.*|uses: zama-ai/slab-github-runner@$RELEASE_COMMIT|g" "$file" - # Extract lines containing "uses: actions/checkout@" after modification + # Extract lines containing "uses: zama-ai/slab-github-runner@" after modification echo "After modifications:" - grep -nE "uses: actions/checkout@" "$file" + grep -nE "uses: zama-ai/slab-github-runner@" "$file" done