Skip to content

Commit

Permalink
Test new token
Browse files Browse the repository at this point in the history
  • Loading branch information
msajidmansoori12 committed Oct 3, 2024
1 parent 6fee125 commit 2bd4299
Showing 1 changed file with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,26 @@ jobs:
call-reusable-workflow:
uses: ./.github/workflows/provision-runner.yml
with:
ec2-image-id: ami-00cc4df80270a8821
ec2-image-id: ami-0b7d4973163feb944
ec2-instance-type: t2.micro
security-group-id: sg-0a3e6b53e86d0e69d
subnet-id: subnet-06113672589e7e836
ec2-os-type: linux
ec2-os-type: windows
secrets:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
github-token: ${{ secrets.GH_TOKEN }}
github-token: ${{ secrets.GH_RUNNER_API_TOKEN }}

run-commands:
needs: call-reusable-workflow
runs-on: ${{ needs.call-reusable-workflow.outputs.instance_label }}
steps:
- name: Running script on linux
- name: Running script on windows
run: |
echo "Running from linux"
cat /etc/os-release
echo ${{ needs.call-reusable-workflow.outputs.instance_label }}
echo "Running from windows"
$windowsVersion = (Get-ComputerInfo).WindowsVersion
echo "Windows Version: $windowsVersion"
[Environment]::UserName
remove-ec2-runner:
Expand All @@ -36,4 +37,4 @@ jobs:
secrets:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
github-token: ${{ secrets.GH_TOKEN }}
github-token: ${{ secrets.GH_RUNNER_API_TOKEN }}

0 comments on commit 2bd4299

Please sign in to comment.