diff --git a/.github/workflows/24x7-test1.yml b/.github/workflows/24x7-test1.yml new file mode 100644 index 00000000..7504161e --- /dev/null +++ b/.github/workflows/24x7-test1.yml @@ -0,0 +1,33 @@ +name: Python 24x7 script + +on: + schedule: + - cron: '*/5 * * * *' + +jobs: + run-selenium: + runs-on: ubuntu-latest + + env: + WEBHOOK_URL: ${{ secrets.WEBHOOK }} + SERVER_IP: ${{ secrets.SERVER_IP }} + USERNAME: ${{ secrets.USERNAME }} + PASSWORD: ${{ secrets.PASSWORD }} + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Python 3 + uses: actions/setup-python@v3 + with: + python-version: 3.x + + - name: Install dependencies + run: | + pip install requests + pip install paramiko + + - name: Run staging script + run: | + python 24x7.py