From 05c5dc80a2921d932ba2c42205fa9c9ca7bdb5c4 Mon Sep 17 00:00:00 2001 From: Chris Tabone Date: Tue, 25 Jun 2024 10:59:27 -0300 Subject: [PATCH] Update self_runner_test.yml --- .github/workflows/self_runner_test.yml | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/.github/workflows/self_runner_test.yml b/.github/workflows/self_runner_test.yml index 6c5fcb19..1fab2fea 100644 --- a/.github/workflows/self_runner_test.yml +++ b/.github/workflows/self_runner_test.yml @@ -7,8 +7,6 @@ on: jobs: setup: runs-on: flysql26-dispatch - outputs: - uuid: ${{ steps.generate_uuid.outputs.uuid }} steps: - name: Generate UUID id: generate_uuid @@ -16,10 +14,6 @@ jobs: UUID=$(uuidgen) echo "UUID=$UUID" echo "UUID=$UUID" >> $GITHUB_ENV - echo "::set-output name=uuid::$UUID" - - - name: Check UUID in Setup - run: echo "UUID ${{env.UUID}}" - name: Remove existing agr_github_runner directory run: | @@ -34,28 +28,20 @@ jobs: start-runner: runs-on: flysql26-dispatch needs: setup - outputs: - uuid: ${{ steps.start_dockerized_runner.outputs.uuid }} steps: - - name: Check UUID in Start Runner - run: echo "Start Runner UUID ${{ needs.setup.outputs.uuid }}" - - name: Start Dockerized Runner id: start_dockerized_runner uses: alliance-genome/agr_github_runner/.github/actions/start_runner@main with: - UUID: ${{ needs.setup.outputs.uuid }} + UUID: ${{env.UUID}} ACCESS_TOKEN: ${{ secrets.CREATE_RUNNER_TOKEN }} AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} use-runner: needs: start-runner - runs-on: ${{ needs.start-runner.outputs.uuid }} + runs-on: ${{env.UUID}} steps: - - name: Check UUID in Use Runner - run: echo "Use Runner UUID ${{ needs.start-runner.outputs.uuid }}" - - name: Log in to ECR uses: alliance-genome/agr_github_runner/.github/actions/login_to_ecr@main with: @@ -77,10 +63,9 @@ jobs: needs: use-runner steps: - name: Stop Dockerized Runner - uses: alliance-genome/agr_github_runner/.github/actions/start_runner@main + uses: alliance-genome/agr_github_runner/.github/actions/stop_runner@main with: - command: stop - UUID: ${{ needs.start-runner.outputs.uuid }} + UUID: ${{env.UUID}} ACCESS_TOKEN: ${{ secrets.CREATE_RUNNER_TOKEN }} AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}