From cc5280a0fcb474d72f8fc7c188710cce7098f04f Mon Sep 17 00:00:00 2001 From: Chris Tabone Date: Mon, 24 Jun 2024 16:07:54 -0300 Subject: [PATCH] Update self_runner_test.yml --- .github/workflows/self_runner_test.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/self_runner_test.yml b/.github/workflows/self_runner_test.yml index 877f4df3..24f12199 100644 --- a/.github/workflows/self_runner_test.yml +++ b/.github/workflows/self_runner_test.yml @@ -8,7 +8,6 @@ jobs: start-runner: runs-on: flysql26-dispatch outputs: - runner_name: ${{ steps.start_runner.outputs.runner_name }} uuid: ${{ steps.generate_uuid.outputs.uuid }} steps: - name: Generate UUID @@ -19,15 +18,12 @@ jobs: echo "::set-output name=uuid::$UUID" - name: Start Dockerized Runner - id: start_runner run: | - RUNNER_NAME=$(bash /var/go/actions-runner-dispatch/runner-controller.sh start ${{ secrets.CREATE_RUNNER_TOKEN }} ${{ secrets.AWS_ACCESS_KEY_ID }} ${{ secrets.AWS_SECRET_ACCESS_KEY }} ${{ steps.generate_uuid.outputs.uuid }}) - echo "RUNNER_NAME=${RUNNER_NAME}" >> $GITHUB_ENV - echo "::set-output name=runner_name::${RUNNER_NAME}" + bash /var/go/actions-runner-dispatch/runner-controller.sh start ${{ secrets.CREATE_RUNNER_TOKEN }} ${{ secrets.AWS_ACCESS_KEY_ID }} ${{ secrets.AWS_SECRET_ACCESS_KEY }} ${{ steps.generate_uuid.outputs.uuid }} use-runner: needs: start-runner - runs-on: ${{ needs.start-runner.outputs.runner_name }} + runs-on: ${{ needs.start-runner.outputs.uuid }} steps: - name: Log in to ECR env: @@ -84,5 +80,4 @@ jobs: steps: - name: Stop Dockerized Runner run: | - RUNNER_NAME="${{ needs.start-runner.outputs.runner_name }}" - bash /var/go/actions-runner-dispatch/runner-controller.sh stop $RUNNER_NAME + bash /var/go/actions-runner-dispatch/runner-controller.sh stop ${{ needs.start-runner.outputs.uuid }}