diff --git a/.github/workflows/graphs.yml b/.github/workflows/graphs.yml index 0e3059f6a68..5f3e6cd944b 100644 --- a/.github/workflows/graphs.yml +++ b/.github/workflows/graphs.yml @@ -20,13 +20,13 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Checkout - uses: actions/checkout@v2.3.3 + uses: actions/checkout@v3 with: ref: ${{ github.head_ref }} - token: ${{ secrets.GH_PAT }} + token: ${{ secrets.GH_PAT || github.token }} - name: Generate graphs uses: upptime/uptime-monitor@v1.29.0 with: command: "graphs" env: - GH_PAT: ${{ secrets.GH_PAT }} + GH_PAT: ${{ secrets.GH_PAT || github.token }} diff --git a/.github/workflows/response-time.yml b/.github/workflows/response-time.yml index 8fd7a8f949c..8ae1bdca12f 100644 --- a/.github/workflows/response-time.yml +++ b/.github/workflows/response-time.yml @@ -20,14 +20,14 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Checkout - uses: actions/checkout@v2.3.3 + uses: actions/checkout@v3 with: ref: ${{ github.head_ref }} - token: ${{ secrets.GH_PAT }} + token: ${{ secrets.GH_PAT || github.token }} - name: Update response time uses: upptime/uptime-monitor@v1.29.0 with: command: "response-time" env: - GH_PAT: ${{ secrets.GH_PAT }} + GH_PAT: ${{ secrets.GH_PAT || github.token }} SECRETS_CONTEXT: ${{ toJson(secrets) }} diff --git a/.github/workflows/setup.yml b/.github/workflows/setup.yml index c70f19dcd8e..c73d36ab2db 100644 --- a/.github/workflows/setup.yml +++ b/.github/workflows/setup.yml @@ -21,44 +21,45 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Checkout - uses: actions/checkout@v2.3.3 + uses: actions/checkout@v3 with: ref: ${{ github.head_ref }} - token: ${{ secrets.GH_PAT }} + token: ${{ secrets.GH_PAT || github.token }} - name: Update template uses: upptime/uptime-monitor@v1.29.0 with: command: "update-template" env: - GH_PAT: ${{ secrets.GH_PAT }} + GH_PAT: ${{ secrets.GH_PAT || github.token }} - name: Update response time uses: upptime/uptime-monitor@v1.29.0 with: command: "response-time" env: - GH_PAT: ${{ secrets.GH_PAT }} + GH_PAT: ${{ secrets.GH_PAT || github.token }} SECRETS_CONTEXT: ${{ toJson(secrets) }} - name: Update summary in README uses: upptime/uptime-monitor@v1.29.0 with: command: "readme" env: - GH_PAT: ${{ secrets.GH_PAT }} + GH_PAT: ${{ secrets.GH_PAT || github.token }} - name: Generate graphs uses: benc-uk/workflow-dispatch@v1 with: workflow: Graphs CI - token: ${{ secrets.GH_PAT }} + token: ${{ secrets.GH_PAT || github.token }} - name: Generate site uses: upptime/uptime-monitor@v1.29.0 with: command: "site" env: - GH_PAT: ${{ secrets.GH_PAT }} + GH_PAT: ${{ secrets.GH_PAT || github.token }} - uses: peaceiris/actions-gh-pages@v3.7.3 name: GitHub Pages Deploy with: - github_token: ${{ secrets.GH_PAT }} + github_token: ${{ secrets.GH_PAT || github.token }} publish_dir: "site/status-page/__sapper__/export/" + force_orphan: "false" user_name: "Upptime Bot" user_email: "73812536+upptime-bot@users.noreply.github.com" diff --git a/.github/workflows/site.yml b/.github/workflows/site.yml index 3f01929e1e4..e17e6da0c51 100644 --- a/.github/workflows/site.yml +++ b/.github/workflows/site.yml @@ -21,20 +21,21 @@ jobs: if: "!contains(github.event.head_commit.message, '[skip ci]')" steps: - name: Checkout - uses: actions/checkout@v2.3.3 + uses: actions/checkout@v3 with: ref: ${{ github.head_ref }} - token: ${{ secrets.GH_PAT }} + token: ${{ secrets.GH_PAT || github.token }} - name: Generate site uses: upptime/uptime-monitor@v1.29.0 with: command: "site" env: - GH_PAT: ${{ secrets.GH_PAT }} + GH_PAT: ${{ secrets.GH_PAT || github.token }} - uses: peaceiris/actions-gh-pages@v3.7.3 name: GitHub Pages Deploy with: - github_token: ${{ secrets.GH_PAT }} + github_token: ${{ secrets.GH_PAT || github.token }} publish_dir: "site/status-page/__sapper__/export/" + force_orphan: "false" user_name: "Upptime Bot" user_email: "73812536+upptime-bot@users.noreply.github.com" diff --git a/.github/workflows/summary.yml b/.github/workflows/summary.yml index d61e615f6f5..7ab91080887 100644 --- a/.github/workflows/summary.yml +++ b/.github/workflows/summary.yml @@ -20,13 +20,13 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Checkout - uses: actions/checkout@v2.3.3 + uses: actions/checkout@v3 with: ref: ${{ github.head_ref }} - token: ${{ secrets.GH_PAT }} + token: ${{ secrets.GH_PAT || github.token }} - name: Update summary in README uses: upptime/uptime-monitor@v1.29.0 with: command: "readme" env: - GH_PAT: ${{ secrets.GH_PAT }} + GH_PAT: ${{ secrets.GH_PAT || github.token }} diff --git a/.github/workflows/update-template.yml b/.github/workflows/update-template.yml index 1ed2e56a912..6c20aad818e 100644 --- a/.github/workflows/update-template.yml +++ b/.github/workflows/update-template.yml @@ -20,13 +20,13 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Checkout - uses: actions/checkout@v2.3.3 + uses: actions/checkout@v3 with: ref: ${{ github.head_ref }} - token: ${{ secrets.GH_PAT }} + token: ${{ secrets.GH_PAT || github.token }} - name: Update template uses: upptime/uptime-monitor@master with: command: "update-template" env: - GH_PAT: ${{ secrets.GH_PAT }} + GH_PAT: ${{ secrets.GH_PAT || github.token }} diff --git a/.github/workflows/updates.yml b/.github/workflows/updates.yml index 6cf5b0b92c8..02c84c3c169 100644 --- a/.github/workflows/updates.yml +++ b/.github/workflows/updates.yml @@ -20,11 +20,11 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Checkout - uses: actions/checkout@v2.3.3 + uses: actions/checkout@v3 with: ref: ${{ github.head_ref }} - token: ${{ secrets.GH_PAT }} + token: ${{ secrets.GH_PAT || github.token }} - name: Update code uses: upptime/updates@master env: - GH_PAT: ${{ secrets.GH_PAT }} + GH_PAT: ${{ secrets.GH_PAT || github.token }} diff --git a/.github/workflows/uptime.yml b/.github/workflows/uptime.yml index cfe9f9593aa..71190b9f023 100644 --- a/.github/workflows/uptime.yml +++ b/.github/workflows/uptime.yml @@ -20,14 +20,14 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Checkout - uses: actions/checkout@v2.3.3 + uses: actions/checkout@v3 with: ref: ${{ github.head_ref }} - token: ${{ secrets.GH_PAT }} + token: ${{ secrets.GH_PAT || github.token }} - name: Check endpoint status uses: upptime/uptime-monitor@v1.29.0 with: command: "update" env: - GH_PAT: ${{ secrets.GH_PAT }} + GH_PAT: ${{ secrets.GH_PAT || github.token }} SECRETS_CONTEXT: ${{ toJson(secrets) }}