diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ddd0cb6..9a76c12 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,17 +23,7 @@ jobs: 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: @@ -42,6 +32,12 @@ jobs: - run: | pip install -r irctc-captcha-solver/requirements.txt python3 irctc-captcha-solver/app.py --image-base-64 "" + 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 # python3 irctc-captcha-solver/app.py --image-base-64 "" is used for models to load before starting tatkal tickets - name: Install Node.js and npm