Skip to content

Commit

Permalink
chore: update slab github runner
Browse files Browse the repository at this point in the history
  • Loading branch information
kcelia committed Dec 19, 2024
1 parent ca3bac8 commit c74a9db
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cifar_benchmark.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/refresh-notebooks-gpu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand Down
10 changes: 5 additions & 5 deletions script/actions_utils/update_slab_github_runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c74a9db

Please sign in to comment.