Skip to content

Commit 78f43d6

Browse files
committed
Merge the steps into a single one
1 parent 6f109b1 commit 78f43d6

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

action.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,10 @@ runs:
1515
using: "composite"
1616
steps:
1717
- name: Package for Google Cloud Functions
18-
if: inputs.faas-provider == 'gcloud'
1918
working-directory: ${{ inputs.working-directory }}
20-
run: ${GITHUB_ACTION_PATH}/package-gcloud.sh
21-
shell: bash
22-
env:
23-
DEPLOYMENT_DIR: deployment
24-
- name: Package for Azure Functions
25-
if: inputs.faas-provider == 'azure'
26-
working-directory: ${{ inputs.working-directory }}
27-
run: ${GITHUB_ACTION_PATH}/package-azure.sh
19+
run: "${GITHUB_ACTION_PATH}/package-${FAAS_PROVIDER}.sh"
2820
shell: bash
2921
env:
3022
APP_NAME: ${{ inputs.function-name }}
23+
DEPLOYMENT_DIR: deployment
24+
FAAS_PROVIDER: ${{ inputs.faas-provider }}

0 commit comments

Comments
 (0)