diff --git a/.github/workflows/nbgl_tests.yml b/.github/workflows/nbgl_tests.yml index 4b275f26..69bdf43c 100644 --- a/.github/workflows/nbgl_tests.yml +++ b/.github/workflows/nbgl_tests.yml @@ -11,8 +11,19 @@ on: jobs: run_NBGL_tests: - runs-on: ubuntu-latest + runs-on: ubuntu-latest + env: + GITHUB_TOKEN: ${{ secrets.CI_BOT_TOKEN }} steps: + - name: Trigger the workflow in the target repository + run: | + gh api -X POST \ + -H "Accept: application/vnd.github.v3+json" \ + /repos/LedgerHQ/app-nbgl-tests/dispatches \ + -f event_type=trigger-workflow \ + -f client_payload='{"inputs":{"golden_run":"Open a PR"}}' + + - name: Trigger the NBGL tests env: GITHUB_TOKEN: ${{ secrets.CI_BOT_TOKEN }}