Skip to content

Commit

Permalink
chore(ci): test start-stop aws instance
Browse files Browse the repository at this point in the history
  • Loading branch information
soonum committed Nov 19, 2024
1 parent e9a29e9 commit 84e7854
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/removed_runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,17 @@ jobs:
test-removed-runner:
name: Test Removed Runner
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.READ_REPO_TOKEN }}

steps:
- name: Check runner removal
run: |
RUNNERS_FOUND=$(gh api "repos/zama-ai/slab-github-runner/actions/runners" --jq '.runners[].name')
if [ ${{ inputs.must-exist }} == true ]; then
echo "$RUNNERS_FOUND" | grep -w "${{ inputs.runner-name }}" || exit 1
if [ "${{ inputs.must-exist }}" == "true" ]; then
echo "laaaaaaaaaaa"
( echo "$RUNNERS_FOUND" | grep -w "${{ inputs.runner-name }}" ) || exit 1
else
echo "$RUNNERS_FOUND" | grep -w "${{ inputs.runner-name }}" || exit 0
echo "iciiiiiiii"
( echo "$RUNNERS_FOUND" | grep -w "${{ inputs.runner-name }}" ) || exit 0
fi
env:
GH_TOKEN: ${{ secrets.READ_REPO_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/test_start_stop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ jobs:
with:
runner-name: ci-persistent-runner
secrets:
READ_REPO_TOKEN: ${{ secrets.READ_REPO_TOKEN }}
READ_REPO_TOKEN: ${{ secrets.SLAB_ACTION_TOKEN }}

0 comments on commit 84e7854

Please sign in to comment.