Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
doregg committed Mar 20, 2024
1 parent 2cac04b commit 52aca26
Showing 1 changed file with 8 additions and 19 deletions.
27 changes: 8 additions & 19 deletions .github/workflows/trigger-e2e-test.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
name: "(▶) Trigger E2E tests Workflow"

on:
push:
workflow_dispatch:
inputs:
version:
description: 'Version'
required: true
sha:
description: 'Commit SHA'
required: true
required: true

jobs:
trigger_e2e_tests:
Expand All @@ -22,21 +21,11 @@ jobs:
run: |
echo "Received test request for @frontegg/angular@${{ inputs.version }}"
echo "From: ${{ inputs.sha }}"
- name: "Test version ${{ inputs.version }} with SHA ${{ (inputs.sha != '' && inputs.sha) || 'default sha' }}"
run: |
echo "Testing version ${{ inputs.version }} with SHA ${{ inputs.sha }}"
- name: Another test
run: |
cd projects/${{ ((inputs.sha != '' || inputs.sha == '1') && 'example') || 'frontegg-app' }}
ls -la
shell: bash
# - name: "Call trigger-e2e-test action"
# uses: ./.github/actions/trigger-e2e-test
# with:
# version: ${{ inputs.version }}
# sha: ${{ inputs.sha }}
# bot_app_id: ${{ secrets.GH_FRONTEGG_BOT_APP_ID }}
# bot_app_key: ${{ secrets.GH_FRONTEGG_BOT_APP_SECRET }}
- name: "Call trigger-e2e-test action"
uses: ./.github/actions/trigger-e2e-test
with:
version: ${{ inputs.version }}
sha: ${{ inputs.sha }}
bot_app_id: ${{ secrets.GH_FRONTEGG_BOT_APP_ID }}
bot_app_key: ${{ secrets.GH_FRONTEGG_BOT_APP_SECRET }}

0 comments on commit 52aca26

Please sign in to comment.