From 36136fe5d6bfc727a91250e68817c742ef4a9a55 Mon Sep 17 00:00:00 2001 From: fortiersteven <74146408+fortiersteven@users.noreply.github.com> Date: Sat, 14 May 2022 14:48:56 -0400 Subject: [PATCH] Update SLPS_Run.yml --- .github/workflows/SLPS_Run.yml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/SLPS_Run.yml b/.github/workflows/SLPS_Run.yml index b64eb25..b160ea9 100644 --- a/.github/workflows/SLPS_Run.yml +++ b/.github/workflows/SLPS_Run.yml @@ -1,5 +1,5 @@ -name: Generate New SLPS and Release +name: New SLPS Test on: workflow_dispatch @@ -13,11 +13,12 @@ jobs: runs-on: ubuntu-latest steps: - #Test again - - name: Login to AZ CLI - uses: azure/login@v1 - with: - creds: ${{ secrets.AZURE_CREDENTIALS }} - - - run: - az vm start -g ${{ secrets.AZURE_RESSOURCE }} -n ${{ secrets.AZURE_VM }} + # Name of step + - name: Start AWS EC2 + # Run AWS Command on the GitHub Hosted runner which starts the instance using AWS authentication stored in GitHub Secrets (see below how to add) + run: | + aws ec2 start-instances --instance-ids ${{secrets.AWS_EC2_INSTANCE_ID }} + env: + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + AWS_DEFAULT_REGION: ${{ secrets.AWS_REGION }}