Skip to content

Update self_runner_test.yml #39

Update self_runner_test.yml

Update self_runner_test.yml #39

name: Dynamic Runner
on:
workflow_dispatch:
push:
jobs:
setup:
runs-on: flysql26-dispatch
steps:
- name: Generate UUID
id: generate_uuid
run: |
UUID=$(uuidgen)
echo "UUID=$UUID"
echo "UUID=$UUID" >> $GITHUB_ENV
- name: Remove existing agr_github_runner directory
run: |
if [ -d "/var/go/actions-runner-dispatch/agr_github_runner" ]; then
rm -rf /var/go/actions-runner-dispatch/agr_github_runner
fi
- name: Clone agr_github_runner repository
run: |
git clone https://github.com/alliance-genome/agr_github_runner.git /var/go/actions-runner-dispatch/agr_github_runner
start-runner:
runs-on: flysql26-dispatch
needs: setup
steps:
- name: Start Dockerized Runner
id: start_dockerized_runner
uses: alliance-genome/agr_github_runner/.github/actions/start_runner@main
with:
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: ${{env.UUID}}

Check failure on line 43 in .github/workflows/self_runner_test.yml

View workflow run for this annotation

GitHub Actions / Dynamic Runner

Invalid workflow file

The workflow is not valid. .github/workflows/self_runner_test.yml (Line: 43, Col: 14): Unrecognized named-value: 'env'. Located at position 1 within expression: env.UUID
steps:
- name: Log in to ECR
uses: alliance-genome/agr_github_runner/.github/actions/login_to_ecr@main
with:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- name: Construct NEO_ENV_IMAGE
id: construct-image
env:
REGISTRY: 100225593120.dkr.ecr.us-east-1.amazonaws.com
DOCKER_PULL_TAG: "stage" # Adjust as needed
run: echo "NEO_ENV_IMAGE=${{ env.REGISTRY }}/agr_neo4j_env:${{ env.DOCKER_PULL_TAG }}" >> $GITHUB_ENV
- name: Start Neo4j Environment
uses: alliance-genome/agr_github_runner/.github/actions/start_neo4j_env@main
stop-runner:
runs-on: flysql26-dispatch
needs: use-runner
steps:
- name: Stop Dockerized Runner
uses: alliance-genome/agr_github_runner/.github/actions/stop_runner@main
with:
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 }}