From ff8b95530d7bbc03cc004c238f236838d13d8460 Mon Sep 17 00:00:00 2001 From: Chris Tabone Date: Mon, 24 Jun 2024 16:02:35 -0300 Subject: [PATCH] Update self_runner_test.yml --- .github/workflows/self_runner_test.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/self_runner_test.yml b/.github/workflows/self_runner_test.yml index e86bfc20..877f4df3 100644 --- a/.github/workflows/self_runner_test.yml +++ b/.github/workflows/self_runner_test.yml @@ -8,14 +8,22 @@ jobs: start-runner: runs-on: flysql26-dispatch outputs: - runner_name: ${{ steps.set-runner-name.outputs.runner_name }} + runner_name: ${{ steps.start_runner.outputs.runner_name }} + uuid: ${{ steps.generate_uuid.outputs.uuid }} steps: + - name: Generate UUID + id: generate_uuid + run: | + UUID=$(uuidgen) + echo "UUID=$UUID" >> $GITHUB_ENV + 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 }}) + 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 "runner_name=${RUNNER_NAME}" >> $GITHUB_ENV + echo "::set-output name=runner_name::${RUNNER_NAME}" use-runner: needs: start-runner