diff --git a/.github/workflows/graphs.yml b/.github/workflows/graphs.yml index d455f106a61..5f3e6cd944b 100644 --- a/.github/workflows/graphs.yml +++ b/.github/workflows/graphs.yml @@ -23,10 +23,10 @@ jobs: 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 5a80e1bce41..8ae1bdca12f 100644 --- a/.github/workflows/response-time.yml +++ b/.github/workflows/response-time.yml @@ -23,11 +23,11 @@ jobs: 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 0de7aa55e60..c73d36ab2db 100644 --- a/.github/workflows/setup.yml +++ b/.github/workflows/setup.yml @@ -24,41 +24,41 @@ jobs: 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" diff --git a/.github/workflows/site.yml b/.github/workflows/site.yml index d45450eb40b..e17e6da0c51 100644 --- a/.github/workflows/site.yml +++ b/.github/workflows/site.yml @@ -24,17 +24,17 @@ jobs: 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" diff --git a/.github/workflows/summary.yml b/.github/workflows/summary.yml index c391c0347fb..7ab91080887 100644 --- a/.github/workflows/summary.yml +++ b/.github/workflows/summary.yml @@ -23,10 +23,10 @@ jobs: 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 70ca5eec131..6c20aad818e 100644 --- a/.github/workflows/update-template.yml +++ b/.github/workflows/update-template.yml @@ -23,10 +23,10 @@ jobs: 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 a08d180df31..02c84c3c169 100644 --- a/.github/workflows/updates.yml +++ b/.github/workflows/updates.yml @@ -23,8 +23,8 @@ jobs: 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 7fcb66b0a6b..71190b9f023 100644 --- a/.github/workflows/uptime.yml +++ b/.github/workflows/uptime.yml @@ -23,11 +23,11 @@ jobs: 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) }}