Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
move secret
Browse files Browse the repository at this point in the history
  • Loading branch information
juan-langa committed Aug 26, 2024
1 parent c1badca commit db4830c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/triggerWorkflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Regression E2E tests

on:
workflow_dispatch:
secrets:
E2E_TESTS_PAT:
required: true
# secrets:
# E2E_TESTS_PAT:
# required: true

jobs:
e2e-tests:
Expand All @@ -13,11 +13,13 @@ jobs:
steps:
- run: echo 'RUN ID is ${{ github.run_id }} --'
- name: Triggering regression e2e tests in e2e-test repository
env:
E2E_TESTS_PAT: ${{ secrets.E2E_TESTS_PAT }}
run: |
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.E2E_TESTS_PAT }}" \
-H "Authorization: Bearer ${{ env.E2E_TESTS_PAT }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/OasisDEX/e2e-tests/actions/workflows/ci_e2e_tests.yml/dispatches \
-d "{\"ref\":\"main\", \"inputs\":{\"run_id\":\"${{ github.run_id }}\"}}"
Expand Down

0 comments on commit db4830c

Please sign in to comment.