Skip to content

Commit

Permalink
using inputws
Browse files Browse the repository at this point in the history
  • Loading branch information
shivamguys committed Apr 8, 2024
1 parent 8c4c729 commit 7a1d0e3
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,31 @@ on:
- 'feature/*'
pull_request:
workflow_dispatch:
inputs:
USERNAME:
required: true
type: string
PASSWORD:
required: true
type: string

jobs:
IRCTC-Booking:
runs-on: ubuntu-latest


steps:
- name: Mask PASSWORD and USERNAME
run: |
PASSWORD=$(jq -r '.inputs.PASSWORD' $GITHUB_EVENT_PATH)
USERNAME=$(jq -r '.inputs.USERNAME' $GITHUB_EVENT_PATH)
echo ::add-mask::$PASSWORD
echo ::add-mask::$USERNAME
echo PASSWORD=$PASSWORD >> $GITHUB_ENV
echo USERNAME=$USERNAME >> $GITHUB_ENV
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
Expand All @@ -36,6 +54,6 @@ jobs:
# continue-on-error: true
with:
browser: chrome
command: npx cypress run --record --key 967b25a7-e4dd-4b5b-a143-d799131b2d3b --browser chrome --env USERNAME=${{secrets.USERNAME}},PASSWORD=${{secrets.PASSWORD}}
command: npx cypress run --record --key 967b25a7-e4dd-4b5b-a143-d799131b2d3b --browser chrome --env USERNAME=${{env.USERNAME}},PASSWORD=${{env.PASSWORD}}


0 comments on commit 7a1d0e3

Please sign in to comment.