From 2a6de246c3a316e35e8ae22d15678dee0611fb34 Mon Sep 17 00:00:00 2001 From: Shivam Pandey Date: Tue, 9 Apr 2024 13:20:13 +0530 Subject: [PATCH] using secrets --- .github/workflows/main.yml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d6897b1..6a28fc7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -6,16 +6,9 @@ on: # - cron: '0,30 12-21 * * *' push: branches: - - 'feature/*' + - 'main' pull_request: workflow_dispatch: - inputs: - USERNAME: - required: true - type: string - PASSWORD: - required: true - type: string jobs: IRCTC-Booking: @@ -43,4 +36,4 @@ jobs: # continue-on-error: true with: browser: chrome - command: npx cypress run --record --key 967b25a7-e4dd-4b5b-a143-d799131b2d3b --browser chrome --env USERNAME=${{inputs.USERNAME}},PASSWORD=${{inputs.PASSWORD}} + command: npx cypress run --record --key 967b25a7-e4dd-4b5b-a143-d799131b2d3b --browser chrome --env USERNAME=${{secrets.USERNAME}},PASSWORD=${{secrets.PASSWORD}}