From 41d5f099429f8610c161474f3744f03faa018885 Mon Sep 17 00:00:00 2001 From: fortiersteven <74146408+fortiersteven@users.noreply.github.com> Date: Sat, 14 May 2022 14:40:17 -0400 Subject: [PATCH 1/2] Create SLPS_Run.yml --- .github/workflows/SLPS_Run.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/SLPS_Run.yml diff --git a/.github/workflows/SLPS_Run.yml b/.github/workflows/SLPS_Run.yml new file mode 100644 index 0000000..b64eb25 --- /dev/null +++ b/.github/workflows/SLPS_Run.yml @@ -0,0 +1,23 @@ + +name: Generate New SLPS and Release + +on: + workflow_dispatch + +env: + base_directory: c:/actions-runner/_work/ + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + startVM: + 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 }} 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 2/2] 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 }}