fix(ci): add actions/checkout to all 5 Upptime workflows
The Upptime action reads .upptimerc.yml from the current working directory; without an explicit checkout step the runner starts in an empty dir and every run fails with ENOENT. Adding actions/checkout@v4 with fetch-depth: 0 (full history required by the commit-back step) as the first step of each workflow. Observed on the initial-commit runs of uptime.yml + static-site.yml which both failed with: ERROR [Error: ENOENT: no such file or directory, open '.upptimerc.yml']
This commit is contained in:
parent
967313cbca
commit
2d4048b088
3
.github/workflows/graphs.yml
vendored
3
.github/workflows/graphs.yml
vendored
@ -12,6 +12,9 @@ jobs:
|
||||
name: Generate graphs
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: upptime/uptime-monitor@master
|
||||
with:
|
||||
command: "graphs"
|
||||
|
||||
3
.github/workflows/response-time.yml
vendored
3
.github/workflows/response-time.yml
vendored
@ -13,6 +13,9 @@ jobs:
|
||||
name: Update response time graphs
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: upptime/uptime-monitor@master
|
||||
with:
|
||||
command: "response-time"
|
||||
|
||||
3
.github/workflows/static-site.yml
vendored
3
.github/workflows/static-site.yml
vendored
@ -20,6 +20,9 @@ jobs:
|
||||
name: Build and deploy status site
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: upptime/uptime-monitor@master
|
||||
with:
|
||||
command: "site"
|
||||
|
||||
3
.github/workflows/summary.yml
vendored
3
.github/workflows/summary.yml
vendored
@ -12,6 +12,9 @@ jobs:
|
||||
name: Generate README + summary
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: upptime/uptime-monitor@master
|
||||
with:
|
||||
command: "readme"
|
||||
|
||||
3
.github/workflows/uptime.yml
vendored
3
.github/workflows/uptime.yml
vendored
@ -20,6 +20,9 @@ jobs:
|
||||
name: Check status of endpoints
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: upptime/uptime-monitor@master
|
||||
with:
|
||||
command: "update"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user