Skip to content

Commit

Permalink
workflow: workaround to setup machine
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelGSS committed May 2, 2024
1 parent 181ac93 commit 278344d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 12 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,15 @@ jobs:
aws-secret-access-key: ${{ secrets.AWS_SECRET_KEY }}
aws-region: us-west-2

- name: Start Runner
uses: ./runner-starter
with:
runner_type: 'Instance'
instance_id: ${{ secrets.INSTANCE_ID }}
action: 'start'
- id: start_instance
name: Start/Stop Runner Instance
shell: bash
env:
AWS_DEFAULT_REGION: ${{ secrets.AWS_REGION }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
run: |
${GITHUB_ACTION_PATH}/instance_start_stop.bash --instance-id=${{ env.INSTANCE_ID }} --action=${{ inputs.action }}
benchmark:
continue-on-error: true
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/run_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,23 @@ on:
description: 'The Node.js Versions (should be a JSON array)'

permissions:
id-token: write # This is required for requesting the JWT
contents: write
issues: write

jobs:

start-instance:
- id: start_instance
name: Start/Stop Runner Instance
shell: bash
env:
AWS_DEFAULT_REGION: ${{ secrets.AWS_REGION }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
run: |
${GITHUB_ACTION_PATH}/instance_start_stop.bash --instance-id=${{ env.INSTANCE_ID }} --action=${{ inputs.action }}
add-property:

name: Running "add-property.js"
uses: ./.github/workflows/bench.yml
with:
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/runner-starter/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ inputs:
description: 'Define if I want to start or stop the runner'
required: true

permissions:
id-token: write # This is required for requesting the JWT
contents: read

runs:
using: "composite"
steps:
Expand Down

0 comments on commit 278344d

Please sign in to comment.