Update Function #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Function | |
on: | |
workflow_dispatch: | |
# Inputs the workflow accepts. | |
inputs: | |
fn_servicename: | |
description: 'service name' | |
default: 'btv-finance-fc' | |
required: true | |
fn_functionname: | |
description: 'function name' | |
default: '' | |
required: true | |
jobs: | |
update_function: | |
runs-on: ubuntu-latest | |
name: Updating Function | |
steps: | |
- name: Service & Function Names | |
run: | | |
echo ${{ github.event.inputs.fn_servicename }} | |
echo ${{ github.event.inputs.fn_functionname }} | |
- name: Install Aliyun Cli | |
uses: aliyun/setup-aliyun-cli-action@v1 | |
- name: Update Function | |
run: | | |
which aliyun | |
aliyun version | |
# aliyun fc-open PUT /2021-04-06/services/testServiceName/functions/testFunctionName --body "{\"description\":\"update function\"}" |