Skip to content

Commit

Permalink
Merge pull request #455 from OasisDEX/triggering-e2e-tests-23-9
Browse files Browse the repository at this point in the history
Trigger workflow - test 2.27
  • Loading branch information
juan-langa authored Aug 23, 2024
2 parents e5f3021 + 6db9e8a commit fce1cbe
Showing 1 changed file with 10 additions and 20 deletions.
30 changes: 10 additions & 20 deletions .github/workflows/ci_e2e_tests_result.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,10 @@ on:
types: [completed]

jobs:
# ########################
# ## 'trigger-conclusion' and 'trigger-id' jobs TO BE REMOVED after TESTING
trigger-conclusion:
runs-on: ubuntu-latest
steps:
- run: echo 'CI E2E tests workflow conclussion is -- ${{ github.event.workflow_run.conclusion }} --.'
trigger-id:
runs-on: ubuntu-latest
steps:
- run: echo 'CI E2E tests workflow ID is -- ${{ github.event.workflow_run.id }} --.'
# ########################
tests-result:
runs-on: ubuntu-latest
steps:
- run: echo 'CI E2E tests result -- ${{ github.event.workflow_run.conclusion }}'
- name: Triggering E2E tests result workflow in oasis-borrow repository
run: |
curl -L \
Expand All @@ -29,15 +19,15 @@ jobs:
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/OasisDEX/test-workflow-trigger/actions/workflows/e2e_tests_result.yml/dispatches \
-d "{\"ref\":\"main\", \"inputs\":{\"tests_run_id\":\"${{ github.event.workflow_run.id }}\", \"tests_result\":\"${{ github.event.workflow_run.conclusion }}\"}}"
- name: Test results failed
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
uses: actions/github-script@v7
with:
script: |
core.setFailed('E2E tests failed')
- name: Test results passed
if: ${{ github.event.workflow_run.conclusion == 'success' }}
run: echo 'CI E2E tests passed'
# - name: Test results failed
# if: ${{ github.event.workflow_run.conclusion == 'failure' }}
# uses: actions/github-script@v7
# with:
# script: |
# core.setFailed('E2E tests failed')
# - name: Test results passed
# if: ${{ github.event.workflow_run.conclusion == 'success' }}
# run: echo 'CI E2E tests passed'

# on-ci-e2e-tests-failure:
# runs-on: ubuntu-latest
Expand Down

0 comments on commit fce1cbe

Please sign in to comment.