Skip to content

Commit

Permalink
テストを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
naogify committed Dec 13, 2023
1 parent aaa33a4 commit 2afd7fb
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 7 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
on: [push]

jobs:
hello_world_job:
runs-on: ubuntu-latest
name: Test this action
steps:
- name: Run this action
id: hello
uses: geolonia/smartcity-data-upload-action@main
with:
input_dir: './docs'
access_key: 'example-city'
aws_access_key: 'example-access-key'
aws_secret_access_key: 'example-secret-access-key'

12 changes: 6 additions & 6 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,20 @@ inputs:
description: 'Access key to identify the user.'
required: true

AWS_ACCESS_KEY:
aws_access_key:
description: 'AWS_ACCESS_KEY'
required: true

AWS_SECRET_ACCESS_KEY:
aws_secret_access_key:
description: 'AWS_SECRET_ACCESS_KEY'
required: true

runs:
using: docker
image: 'docker://ghcr.io/geolonia/smartcity-data-upload-action:main'
using: 'docker'
image: 'Dockerfile'

args:
- ${{ inputs.input_dir }}
- ${{ inputs.access_key }}
- ${{ inputs.AWS_ACCESS_KEY }}
- ${{ inputs.AWS_SECRET_ACCESS_KEY }}
- ${{ inputs.aws_access_key }}
- ${{ inputs.aws_secret_access_key }}
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -e

INPUT_DIR=$1
ACCESS_KEY=$2
AWS_ACCESS_KEY_ID=$3
AWS_ACCESS_KEY=$3
AWS_SECRET_ACCESS_KEY=$4

echo "INPUT_DIR: $INPUT_DIR"
Expand Down

0 comments on commit 2afd7fb

Please sign in to comment.