diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml index a6cde26..4669e2a 100644 --- a/.github/workflows/greetings.yml +++ b/.github/workflows/greetings.yml @@ -1,6 +1,6 @@ name: Greetings -on: [pull_request, issues, push] +on: [pull_request, issues, workflow_dispatch] jobs: greeting: @@ -11,6 +11,6 @@ jobs: steps: - uses: actions/first-interaction@v1 with: - repo-token: ${{ secrets.TOKEN }} + repo-token: ${{ secrets.GITHUB_TOKEN }} issue-message: 'Hey, @${{ github.actor }} welcome to JEE Counsellor repository.🎊 Thank you so much for taking the time to point this out.🙌' pr-message: 'Hey, @${{ github.actor }} welcome to JEE Counsellor repository.🎊 Thank you so much for taking the effort to make our project better! 🙌 Keep making such awesome contributions!' diff --git a/tool.py b/tool.py index dd921c9..238726f 100644 --- a/tool.py +++ b/tool.py @@ -37,13 +37,17 @@ def pre_setup(): print(Fore.GREEN + "1." + Fore.BLUE + "JOSAA") print(Fore.GREEN + "2." + Fore.BLUE + "CSAB" + Fore.RESET) print(Fore.GREEN + "3." + Fore.BLUE + "About" + Fore.RESET) - option = input("Select Option (1 to 3) : ") + print(Fore.GREEN + "4." + Fore.BLUE + "Exit" + Fore.RESET) #adding exit function in main menu + option = input("Select Option (1 to 4) : ") #increasing last choice value if option == '1': josaa_rounds_year() elif option == '2': csab_rounds_year() elif option == '3': show_about_section() + elif option == '4': #adding exit condition + print("Exiting...") #printing exiting + exit(0) #calling exit function else: pre_setup()