Skip to content

Commit 6a03b75

Browse files
authored
Merge pull request #2 from debugger24/feature/initial-implementation
FIX: Env variable
2 parents 57833f7 + e1033de commit 6a03b75

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

.github/workflows/test-branch.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ jobs:
2222
with:
2323
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
2424
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
25-
aws-region: ${AWS_REGION}
25+
aws-region: ${{ env.AWS_REGION }}
2626
- name: Test Linux
2727
id: test-linux
2828
uses: ./
2929
with:
30-
aws-region: ${AWS_REGION}
30+
aws-region: ${{ env.AWS_REGION }}
3131
instance-ids: ${{ github.event.inputs.instance_id_linux }}
3232
commands: |
3333
pwd

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
11
# GitHub Action - AWS SSM Run Command
22

33
Github Action for running commands on Linux or Windows machine managed using SSM
4+
5+
## Usage
6+
7+
```yaml
8+
- name: Execute command
9+
uses: debugger24/action-aws-ssm-run-command@v1
10+
with:
11+
aws-region: us-east-1
12+
instance-ids: |
13+
instance_id_1
14+
instance_id_2
15+
commands: |
16+
pwd
17+
ls
18+
echo "Executed by Github Actions Workflow #${{ github.run_id }}" >> test.txt
19+
```

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "action-aws-ssm-run-command",
3-
"version": "0.1.0",
3+
"version": "1.0.0",
44
"description": "Github Action for running commands on Linux or Windows machine managed using SSM",
55
"main": "dist/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)