Skip to content

Commit

Permalink
ci: update
Browse files Browse the repository at this point in the history
  • Loading branch information
wenytang-ms committed Nov 29, 2024
1 parent 6ac5b1d commit 96b09a0
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ on:
type: boolean
default: false

cli-version:
description: "cli version"
required: false
type: string
default: ""

schedule:
- cron: "0 22 * * *"

Expand Down Expand Up @@ -207,13 +213,18 @@ jobs:
run: |
npm run setup
- name: install cli with specific version
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.cli-version != '' }}
run: |
npm install -g @microsoft/teamsapp-cli@${{ github.event.inputs.cli-version }}
- name: install cli for schedule
if: ${{ github.event_name == 'schedule' || ( github.event.ref == 'refs/heads/dev' && github.event_name == 'workflow_dispatch' )}}
if: ${{ github.event_name == 'schedule' || ( github.event.ref == 'refs/heads/dev' && github.event_name == 'workflow_dispatch' && github.event.inputs.cli-version == '' ) }}
run: |
npm install -g @microsoft/teamsapp-cli@alpha
- name: link cli for workflow_dispatch
if: ${{ github.event_name == 'workflow_dispatch' && github.event.ref != 'refs/heads/dev' }}
if: ${{ github.event_name == 'workflow_dispatch' && github.event.ref != 'refs/heads/dev' && github.event.inputs.cli-version == '' }}
run: |
pnpm link --global
Expand Down

0 comments on commit 96b09a0

Please sign in to comment.