Skip to content

Use this github action to pause and resume UptimeRobot Monitors during a deployment or a service.

License

Notifications You must be signed in to change notification settings

Brainchain-ai/uptimerobot-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

uptimerobot-action

Use this github action to pause and resume UptimeRobot Monitors during a deployment of a service.

Usage

```yaml
name: My Workflow

on:
push:
    branches:
    - main

jobs:
pause_resume:
    runs-on: ubuntu-latest
    steps:
    - name: Checkout code
        uses: actions/checkout@v2

    - name: Pause/Resume UptimeRobot Monitor
        uses: Brainchain-ai/[email protected]
        with:
          api_key: ${{ secrets.UPTIMEROBOT_API_KEY }}
          monitor_id: 'your_monitor_id'
          action: '0' # 0 for pause, 1 for resume

    - name: Deploy
        run: |
        echo "Deploying..."
        sleep 10
        echo "Deployed!"

    - name: Pause/Resume UptimeRobot Monitor
        uses: Brainchain-ai/[email protected]
        with:
          api_key: ${{ secrets.UPTIMEROBOT_API_KEY }}
          monitor_id: 'your_monitor_id'
          action: '1' # 0 for pause, 1 for resume
```

About

Use this github action to pause and resume UptimeRobot Monitors during a deployment or a service.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •