-
Notifications
You must be signed in to change notification settings - Fork 3
35 lines (32 loc) · 953 Bytes
/
test-branch.yaml
File metadata and controls
35 lines (32 loc) · 953 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Test Workflow
on:
workflow_dispatch:
inputs:
instance_id_linux:
description: Instance ID to execute AWS SSM command
required: true
env:
AWS_REGION: ap-south-1
jobs:
test-linux:
runs-on: ubuntu-latest
name: Test Linux
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ env.AWS_REGION }}
- name: Test Linux
id: test-linux
uses: ./
with:
aws-region: ${{ env.AWS_REGION }}
instance-ids: ${{ github.event.inputs.instance_id_linux }}
commands: |
pwd
ls
echo "Executed by Github Actions Workflow #${{ github.run_id }}" >> test.txt