Skip to content

Commit

Permalink
feat: setup
Browse files Browse the repository at this point in the history
  • Loading branch information
huyikun.hyk committed Jan 16, 2024
1 parent dff3837 commit 4417aee
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ jobs:
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

# Runs a single command using the runners shell
- name: Run a one-line script
run: echo Hello, world!
- uses: actions/setup-node@v4
with:
node-version: 18

# Runs my action
- name: Test Local Action
id: test-action
- name: Setup serverless-devs
id: setup-serverless-devs
uses: ./
with:
account_id: 1
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ inputs:
runs:
using: "composite"
steps:
- run: ./script.sh ${{ inputs.account_id }} ${{ access_key_id }} ${{ access_key_secret }} ${{ access }}
- run: ./script.sh ${{ inputs.account_id }} ${{ inputs.access_key_id }} ${{ inputs.access_key_secret }} ${{ inputs.access }}
shell: bash
5 changes: 3 additions & 2 deletions script.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
echo 'helloworld'
echo $1 $2 $3 $4
npm i @serverless-devs/s -g --registry=https://registry.npmmirror.com
s config add --AccountID $1 --AccessKeyID $2 --AccessKeySecret $3 -a $4 -f
s deploy --use-local -y

0 comments on commit 4417aee

Please sign in to comment.