Skip to content

Commit

Permalink
Updating node version in the action from 12 to 16; trying to elimite …
Browse files Browse the repository at this point in the history
…set-output from workflow
  • Loading branch information
Gmerold committed Oct 11, 2023
1 parent de356d2 commit 6651924
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/actions/ec2-github-runner/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,5 @@ outputs:
EC2 Instance Id of the created runner.
The id is used to terminate the EC2 instance when the runner is not needed anymore.
runs:
using: node12
using: node16
main: ./dist/index.js
14 changes: 8 additions & 6 deletions .github/workflows/integration-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ jobs:
start-runner:
name: Start self-hosted EC2 runner
runs-on: ubuntu-latest
outputs:
label: ${{ steps.start-ec2-runner.outputs.label }}
ec2-instance-id: ${{ steps.start-ec2-runner.outputs.ec2-instance-id }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -48,11 +45,16 @@ jobs:
}
}
]
- name: Set vars
id: set-vars
run: |
echo "LABEL=${{ steps.start-ec2-runner.outputs.label }}" >> "$GITHUB_OUTPUT"
echo "EC2_INSTANCE_ID=${{ steps.start-ec2-runner.outputs.ec2-instance-id }}" >> "$GITHUB_OUTPUT"
integration-tests:
name: Integration tests
needs: start-runner
runs-on: ${{ needs.start-runner.outputs.label }}
runs-on: ${{ needs.start-runner.set-vars.outputs.LABEL }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -122,5 +124,5 @@ jobs:
with:
mode: stop
github-token: "${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}"
label: ${{ needs.start-runner.outputs.label }}
ec2-instance-id: ${{ needs.start-runner.outputs.ec2-instance-id }}
label: ${{ needs.start-runner.set-vars.outputs.LABEL }}
ec2-instance-id: ${{ needs.start-runner.set-vars.outputs.EC2_INSTANCE_ID }}

0 comments on commit 6651924

Please sign in to comment.