Skip to content

Commit

Permalink
Update self_runner_test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
christabone authored Jun 24, 2024
1 parent b255522 commit ff8b955
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/self_runner_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ff8b955

Please sign in to comment.